From ad7ec16aeb3fc491e5b5f1091ce9ae7ced4fb97c Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Mon, 6 Jan 2020 19:18:34 +0100 Subject: [PATCH] Refactor favorite points --- OsmAnd/src/net/osmand/plus/base/FavoriteImageDrawable.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/base/FavoriteImageDrawable.java b/OsmAnd/src/net/osmand/plus/base/FavoriteImageDrawable.java index 1611c1876a..8c6313b87a 100644 --- a/OsmAnd/src/net/osmand/plus/base/FavoriteImageDrawable.java +++ b/OsmAnd/src/net/osmand/plus/base/FavoriteImageDrawable.java @@ -45,7 +45,7 @@ public class FavoriteImageDrawable extends Drawable { private ColorFilter grayFilter; private Drawable personalPointBitmap; - public FavoriteImageDrawable(Context ctx, int color, boolean withShadow, boolean synced, FavouritePoint point) { + private FavoriteImageDrawable(Context ctx, int color, boolean withShadow, boolean synced, FavouritePoint point) { this.withShadow = withShadow; this.synced = synced; Resources res = ctx.getResources(); @@ -148,7 +148,7 @@ public class FavoriteImageDrawable extends Drawable { private static TreeMap cache = new TreeMap<>(); - public static FavoriteImageDrawable getOrCreate(Context a, int color, boolean withShadow, boolean synced, FavouritePoint point) { + private static FavoriteImageDrawable getOrCreate(Context a, int color, boolean withShadow, boolean synced, FavouritePoint point) { String pointName = ""; if (point != null && point.isPersonalPoint()) { pointName = point.getName();