Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
38af1f4e1f
3 changed files with 4 additions and 0 deletions
BIN
OsmAnd/res/drawable-hdpi/widget_no_icon.png
Normal file
BIN
OsmAnd/res/drawable-hdpi/widget_no_icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 101 B |
BIN
OsmAnd/res/drawable-large/widget_no_icon.png
Normal file
BIN
OsmAnd/res/drawable-large/widget_no_icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 101 B |
|
@ -182,6 +182,8 @@ public class AppearanceWidgetsFactory {
|
|||
Field f = R.drawable.class.getField("widget_" + p.getAttrName().toLowerCase());
|
||||
icon = f.getInt(null);
|
||||
} catch(Exception e){
|
||||
Field f = R.drawable.class.getField("widget_no_icon");
|
||||
icon = f.getInt(null);
|
||||
}
|
||||
MapWidgetRegistry.MapWidgetRegInfo w = mapInfoControls.registerAppearanceWidget(icon, propertyName, "rend_"+p.getAttrName(), pref, categoryName);
|
||||
w.setStateChangeListener(new Runnable() {
|
||||
|
@ -200,6 +202,8 @@ public class AppearanceWidgetsFactory {
|
|||
Field f = R.drawable.class.getField("widget_" + p.getAttrName().toLowerCase());
|
||||
icon = f.getInt(null);
|
||||
} catch(Exception e){
|
||||
Field f = R.drawable.class.getField("widget_no_icon");
|
||||
icon = f.getInt(null);
|
||||
}
|
||||
MapWidgetRegistry.MapWidgetRegInfo w = mapInfoControls.registerAppearanceWidget(icon, propertyName, "rend_"+p.getAttrName(), pref, categoryName);
|
||||
w.setStateChangeListener(new Runnable() {
|
||||
|
|
Loading…
Reference in a new issue