Background type lowercase
This commit is contained in:
parent
dd1791a257
commit
a91fcad0f2
1 changed files with 10 additions and 10 deletions
|
@ -114,15 +114,15 @@ public class FavouritePoint implements Serializable, LocationPoint {
|
||||||
public PointDescription getPointDescription(@NonNull Context ctx) {
|
public PointDescription getPointDescription(@NonNull Context ctx) {
|
||||||
return new PointDescription(PointDescription.POINT_TYPE_FAVORITE, getDisplayName(ctx));
|
return new PointDescription(PointDescription.POINT_TYPE_FAVORITE, getDisplayName(ctx));
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setColor(int color) {
|
public void setColor(int color) {
|
||||||
this.color = color;
|
this.color = color;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isVisible() {
|
public boolean isVisible() {
|
||||||
return visible;
|
return visible;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setVisible(boolean visible) {
|
public void setVisible(boolean visible) {
|
||||||
this.visible = visible;
|
this.visible = visible;
|
||||||
}
|
}
|
||||||
|
@ -159,7 +159,7 @@ public class FavouritePoint implements Serializable, LocationPoint {
|
||||||
public void setLongitude(double longitude) {
|
public void setLongitude(double longitude) {
|
||||||
this.longitude = longitude;
|
this.longitude = longitude;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getCategory() {
|
public String getCategory() {
|
||||||
return category;
|
return category;
|
||||||
}
|
}
|
||||||
|
@ -167,7 +167,7 @@ public class FavouritePoint implements Serializable, LocationPoint {
|
||||||
public String getCategoryDisplayName(@NonNull Context ctx) {
|
public String getCategoryDisplayName(@NonNull Context ctx) {
|
||||||
return FavouritesDbHelper.FavoriteGroup.getDisplayName(ctx, category);
|
return FavouritesDbHelper.FavoriteGroup.getDisplayName(ctx, category);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setCategory(String category) {
|
public void setCategory(String category) {
|
||||||
this.category = category;
|
this.category = category;
|
||||||
initPersonalType();
|
initPersonalType();
|
||||||
|
@ -179,7 +179,7 @@ public class FavouritePoint implements Serializable, LocationPoint {
|
||||||
}
|
}
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getName() {
|
public String getName() {
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
@ -297,9 +297,9 @@ public class FavouritePoint implements Serializable, LocationPoint {
|
||||||
}
|
}
|
||||||
|
|
||||||
public enum BackType {
|
public enum BackType {
|
||||||
CIRCLE("CIRCLE", R.drawable.bg_point_circle),
|
CIRCLE("circle", R.drawable.bg_point_circle),
|
||||||
RHOMB("RHOMB", R.drawable.bg_point_rhomb),
|
RHOMB("rhomb", R.drawable.bg_point_rhomb),
|
||||||
SQUARE("SQUARE", R.drawable.bg_point_square);
|
SQUARE("sqare", R.drawable.bg_point_square);
|
||||||
|
|
||||||
private String typeName;
|
private String typeName;
|
||||||
@StringRes
|
@StringRes
|
||||||
|
@ -334,7 +334,7 @@ public class FavouritePoint implements Serializable, LocationPoint {
|
||||||
if (iconName != null) {
|
if (iconName != null) {
|
||||||
fp.setIconIdFromName(ctx, iconName);
|
fp.setIconIdFromName(ctx, iconName);
|
||||||
}
|
}
|
||||||
fp.setBackType(BackType.valueOf((pt.getBackType())));
|
fp.setBackType(BackType.valueOf((pt.getBackType().toUpperCase())));
|
||||||
return fp;
|
return fp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue