mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Strips "Category:" from category strings
This commit is contained in:
parent
0f50fc790e
commit
d7bc231093
1 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue