mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 12:53:55 +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;
|
||||
|
||||
protected static HashSet<String> categorySet;
|
||||
protected static String categorySetString;
|
||||
|
||||
public MwVolleyApi(Context context) {
|
||||
this.context = context;
|
||||
|
|
@ -141,7 +142,9 @@ public class MwVolleyApi {
|
|||
return "No collection of categories";
|
||||
}
|
||||
else {
|
||||
return "CATEGORIES FOUND" + categorySet.toString();
|
||||
categorySetString = categorySet.toString();
|
||||
categorySetString = categorySetString.replace("Category:", "");
|
||||
return "CATEGORIES FOUND" + categorySetString;
|
||||
}
|
||||
}
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue