justify display of new renderingProperties in menu

This commit is contained in:
sonora 2014-08-29 02:07:45 +02:00
parent 5f3a351209
commit 0ea5e80eea
3 changed files with 4 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 101 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 101 B

View file

@ -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() {