Fix #9270 Favorites: first created group doesn't show up

This commit is contained in:
Dima-1 2020-06-19 10:21:30 +03:00
parent 4727143bbe
commit f322116d7d

View file

@ -469,7 +469,7 @@ public class FavoritePointEditorFragmentNew extends PointEditorFragmentNew {
categories.add(lastUsedGroup.getDisplayName(app));
}
for (FavouritesDbHelper.FavoriteGroup fg : getHelper().getFavoriteGroups()) {
if (lastUsedGroup != null && !fg.equals(lastUsedGroup) && fg.isVisible()) {
if (!fg.equals(lastUsedGroup) && fg.isVisible()) {
categories.add(fg.getDisplayName(app));
}
}