Merge pull request #10084 from osmandapp/fix_import_favorites_icon
Fix "null" import favorites icon
This commit is contained in:
commit
44d6afd2b2
1 changed files with 4 additions and 1 deletions
|
@ -670,7 +670,10 @@ public class ImportHelper {
|
|||
}
|
||||
fp.setAddress(p.getExtensionsToRead().get("address"));
|
||||
fp.setColor(p.getColor(0));
|
||||
fp.setIconIdFromName(app, p.getIconName());
|
||||
String iconName = p.getIconName();
|
||||
if (iconName != null) {
|
||||
fp.setIconIdFromName(app, iconName);
|
||||
}
|
||||
fp.setBackgroundType(BackgroundType.getByTypeName(p.getBackgroundType(), DEFAULT_BACKGROUND_TYPE));
|
||||
favourites.add(fp);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue