Refactor favorite points
This commit is contained in:
parent
4b23864c27
commit
be26a0e5b2
2 changed files with 5 additions and 5 deletions
|
@ -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) {
|
||||
|
|
|
@ -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<FavouritePoint> points = new ArrayList<>();
|
||||
protected String name;
|
||||
protected boolean visible = true;
|
||||
protected int color;
|
||||
protected List<FavouritePoint> points = new ArrayList<>();
|
||||
|
||||
public boolean isPersonal() {
|
||||
return isPersonal(name);
|
||||
|
|
Loading…
Reference in a new issue