Skip to content

Commit fbc4165

Browse files
committed
Moving Uncategorized to the beginning of the category list
1 parent e43b88c commit fbc4165

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

WordPress/src/main/java/org/wordpress/android/ui/prefs/SiteSettingsFragment.java

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,16 @@ private void setCategories() {
654654
int i = 0;
655655
for (Integer key : categories.keySet()) {
656656
entries[i] = categories.get(key);
657-
values[i++] = String.valueOf(key);
657+
values[i] = String.valueOf(key);
658+
if (key == 1) {
659+
CharSequence temp = entries[0];
660+
entries[0] = entries[i];
661+
entries[i] = temp;
662+
temp = values[0];
663+
values[0] = values[i];
664+
values[i] = temp;
665+
}
666+
++i;
658667
}
659668

660669
mCategoryPref.setEntries(entries);

0 commit comments

Comments
 (0)