mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +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(titleCategories())
|
||||||
.concatWith(recentCategories())
|
.concatWith(recentCategories())
|
||||||
.concatWith(directCategories());
|
.concatWith(directCategories());
|
||||||
//TODO: Add category suggestions for direct uploads here
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//TODO: Add category suggestions for direct uploads here
|
|
||||||
private Observable<CategoryItem> directCategories() {
|
private Observable<CategoryItem> directCategories() {
|
||||||
String directCategory = directPrefs.getString("Category", "");
|
String directCategory = directPrefs.getString("Category", "");
|
||||||
Timber.d("Direct category found: " + directCategory);
|
Timber.d("Direct category found: " + directCategory);
|
||||||
//String[] myStringArray = {directCategory};
|
|
||||||
List<String> categoryList = new ArrayList<>();
|
List<String> categoryList = new ArrayList<>();
|
||||||
categoryList.add(directCategory);
|
categoryList.add(directCategory);
|
||||||
|
|
||||||
return Observable.fromIterable(categoryList).map(name -> new CategoryItem(name, false));
|
return Observable.fromIterable(categoryList).map(name -> new CategoryItem(name, false));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue