From f322116d7d1ff1770512e3f1b2250a0028be9407 Mon Sep 17 00:00:00 2001 From: Dima-1 Date: Fri, 19 Jun 2020 10:21:30 +0300 Subject: [PATCH] Fix #9270 Favorites: first created group doesn't show up --- .../mapcontextmenu/editors/FavoritePointEditorFragmentNew.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/mapcontextmenu/editors/FavoritePointEditorFragmentNew.java b/OsmAnd/src/net/osmand/plus/mapcontextmenu/editors/FavoritePointEditorFragmentNew.java index 822b3cb170..45716315fe 100644 --- a/OsmAnd/src/net/osmand/plus/mapcontextmenu/editors/FavoritePointEditorFragmentNew.java +++ b/OsmAnd/src/net/osmand/plus/mapcontextmenu/editors/FavoritePointEditorFragmentNew.java @@ -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)); } }