Fix crash
This commit is contained in:
parent
254f5f3271
commit
fbe80dc3d4
1 changed files with 4 additions and 1 deletions
|
@ -26,16 +26,19 @@ public class DirectionDrawable extends Drawable {
|
|||
this(ctx, width, height);
|
||||
IconsCache iconsCache = ((OsmandApplication) ctx.getApplicationContext()).getIconsCache();
|
||||
arrowImage = iconsCache.getIcon(resourceId, clrId);
|
||||
this.resourceId = resourceId;
|
||||
}
|
||||
|
||||
public void setImage(int resourceId, int clrId) {
|
||||
IconsCache iconsCache = ((OsmandApplication) ctx.getApplicationContext()).getIconsCache();
|
||||
arrowImage = iconsCache.getIcon(resourceId, clrId);
|
||||
arrowImage = iconsCache.getIcon(resourceId, clrId);
|
||||
this.resourceId = resourceId;
|
||||
}
|
||||
|
||||
public void setImage(int resourceId){
|
||||
IconsCache iconsCache = ((OsmandApplication) ctx.getApplicationContext()).getIconsCache();
|
||||
arrowImage = iconsCache.getIcon(resourceId, 0);
|
||||
this.resourceId = resourceId;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue