From be26a0e5b26a45d5e7abb2e16608431fe6221f96 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Mon, 6 Jan 2020 19:11:01 +0100 Subject: [PATCH] Refactor favorite points --- OsmAnd/src/net/osmand/data/FavouritePoint.java | 2 +- OsmAnd/src/net/osmand/plus/FavouritesDbHelper.java | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/OsmAnd/src/net/osmand/data/FavouritePoint.java b/OsmAnd/src/net/osmand/data/FavouritePoint.java index bc3dbbcbd9..e8693f9a3e 100644 --- a/OsmAnd/src/net/osmand/data/FavouritePoint.java +++ b/OsmAnd/src/net/osmand/data/FavouritePoint.java @@ -148,7 +148,7 @@ public class FavouritePoint implements Serializable, LocationPoint { } public String getCategoryDisplayName(@NonNull Context ctx) { - return FavouritesDbHelper.FavoriteGroup.getDisplayName(ctx); + return FavouritesDbHelper.FavoriteGroup.getDisplayName(category, ctx); } public void setCategory(String category) { diff --git a/OsmAnd/src/net/osmand/plus/FavouritesDbHelper.java b/OsmAnd/src/net/osmand/plus/FavouritesDbHelper.java index ad00812e3b..2c74b6f004 100644 --- a/OsmAnd/src/net/osmand/plus/FavouritesDbHelper.java +++ b/OsmAnd/src/net/osmand/plus/FavouritesDbHelper.java @@ -67,10 +67,10 @@ public class FavouritesDbHelper { public static class FavoriteGroup { public static final String PERSONAL_CATEGORY = "personal"; - public String name; - public boolean visible = true; - public int color; - public List points = new ArrayList<>(); + protected String name; + protected boolean visible = true; + protected int color; + protected List points = new ArrayList<>(); public boolean isPersonal() { return isPersonal(name);