mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 12:23:58 +01:00
Tidy up CategorizationFragment
This commit is contained in:
parent
d2b0ffc69d
commit
eb4646df4b
1 changed files with 2 additions and 3 deletions
|
|
@ -271,16 +271,15 @@ public class CategorizationFragment extends CommonsDaggerSupportFragment {
|
|||
.concatWith(titleCategories())
|
||||
.concatWith(recentCategories())
|
||||
.concatWith(directCategories());
|
||||
//TODO: Add category suggestions for direct uploads here
|
||||
}
|
||||
|
||||
//TODO: Add category suggestions for direct uploads here
|
||||
private Observable<CategoryItem> directCategories() {
|
||||
String directCategory = directPrefs.getString("Category", "");
|
||||
Timber.d("Direct category found: " + directCategory);
|
||||
//String[] myStringArray = {directCategory};
|
||||
|
||||
List<String> categoryList = new ArrayList<>();
|
||||
categoryList.add(directCategory);
|
||||
|
||||
return Observable.fromIterable(categoryList).map(name -> new CategoryItem(name, false));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue