Strips "Category:" from category strings

This commit is contained in:
misaochan 2015-12-25 18:32:38 +13:00
parent 0f50fc790e
commit d7bc231093

View file

@ -28,6 +28,7 @@ public class MwVolleyApi {
private Context context; private Context context;
protected static HashSet<String> categorySet; protected static HashSet<String> categorySet;
protected static String categorySetString;
public MwVolleyApi(Context context) { public MwVolleyApi(Context context) {
this.context = context; this.context = context;
@ -141,7 +142,9 @@ public class MwVolleyApi {
return "No collection of categories"; return "No collection of categories";
} }
else { else {
return "CATEGORIES FOUND" + categorySet.toString(); categorySetString = categorySet.toString();
categorySetString = categorySetString.replace("Category:", "");
return "CATEGORIES FOUND" + categorySetString;
} }
} }
@Override @Override