Merge remote-tracking branch 'origin/master'

This commit is contained in:
Weblate 2014-08-29 02:08:00 +02:00
commit 38af1f4e1f
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() {