Refactor favorite points
This commit is contained in:
parent
41da9c2b97
commit
ad7ec16aeb
1 changed files with 2 additions and 2 deletions
|
@ -45,7 +45,7 @@ public class FavoriteImageDrawable extends Drawable {
|
||||||
private ColorFilter grayFilter;
|
private ColorFilter grayFilter;
|
||||||
private Drawable personalPointBitmap;
|
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.withShadow = withShadow;
|
||||||
this.synced = synced;
|
this.synced = synced;
|
||||||
Resources res = ctx.getResources();
|
Resources res = ctx.getResources();
|
||||||
|
@ -148,7 +148,7 @@ public class FavoriteImageDrawable extends Drawable {
|
||||||
|
|
||||||
private static TreeMap<String, FavoriteImageDrawable> cache = new TreeMap<>();
|
private static TreeMap<String, FavoriteImageDrawable> 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 = "";
|
String pointName = "";
|
||||||
if (point != null && point.isPersonalPoint()) {
|
if (point != null && point.isPersonalPoint()) {
|
||||||
pointName = point.getName();
|
pointName = point.getName();
|
||||||
|
|
Loading…
Reference in a new issue