mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 04:43:54 +01:00
Remove 'Category:' at start of string
This commit is contained in:
parent
8c347ac370
commit
1dda897dcc
1 changed files with 3 additions and 1 deletions
|
|
@ -217,7 +217,9 @@ public class CategorizationFragment extends SherlockFragment{
|
|||
|
||||
ArrayList<ApiResult> categoryNodes = result.getNodes("/api/query/search/p/@title");
|
||||
for(ApiResult categoryNode: categoryNodes) {
|
||||
categories.add(categoryNode.getDocument().getTextContent());
|
||||
String cat = categoryNode.getDocument().getTextContent();
|
||||
String catString = cat.replace("Category:", "");
|
||||
categories.add(catString);
|
||||
}
|
||||
|
||||
categoriesCache.put(filter, categories);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue