Fix icon name without prefix
This commit is contained in:
parent
e974d7ca72
commit
db080a9447
1 changed files with 2 additions and 2 deletions
|
@ -98,7 +98,7 @@ public class FavouritePoint implements Serializable, LocationPoint {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setIconIdFromName(Context ctx, String iconName) {
|
public void setIconIdFromName(Context ctx, String iconName) {
|
||||||
this.iconId = ctx.getResources().getIdentifier(iconName, "drawable", ctx.getPackageName());
|
this.iconId = ctx.getResources().getIdentifier("mx_" + iconName, "drawable", ctx.getPackageName());
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isSpecialPoint() {
|
public boolean isSpecialPoint() {
|
||||||
|
@ -314,7 +314,7 @@ public class FavouritePoint implements Serializable, LocationPoint {
|
||||||
pt.getExtensionsToWrite().put(ADDRESS_EXTENSION, getAddress());
|
pt.getExtensionsToWrite().put(ADDRESS_EXTENSION, getAddress());
|
||||||
}
|
}
|
||||||
if (iconId != 0) {
|
if (iconId != 0) {
|
||||||
pt.setIconName(ctx.getResources().getResourceEntryName(iconId));
|
pt.setIconName(ctx.getResources().getResourceEntryName(iconId).substring(3));
|
||||||
}
|
}
|
||||||
if (getColor() != 0) {
|
if (getColor() != 0) {
|
||||||
pt.setColor(getColor());
|
pt.setColor(getColor());
|
||||||
|
|
Loading…
Reference in a new issue