mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Fix blank categories in direct Nearby uploads (#1426)
This commit is contained in:
parent
f4166899ca
commit
adff92042e
1 changed files with 4 additions and 1 deletions
|
|
@ -280,8 +280,11 @@ public class CategorizationFragment extends CommonsDaggerSupportFragment {
|
|||
|
||||
private Observable<CategoryItem> directCategories() {
|
||||
String directCategory = directPrefs.getString("Category", "");
|
||||
// Strip newlines to prevent blank categories, and to tidy existing categories
|
||||
directCategory = directCategory.replace("\n", "");
|
||||
|
||||
List<String> categoryList = new ArrayList<>();
|
||||
Timber.d("Direct category found: " + directCategory);
|
||||
Timber.d("Direct category found: " + "'" + directCategory + "'");
|
||||
|
||||
if (!directCategory.equals("")) {
|
||||
hasDirectCategories = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue