From fe774b6259c7c7cfe9006f7d7ffabcefbd011e98 Mon Sep 17 00:00:00 2001 From: sonora Date: Fri, 29 Aug 2014 02:17:41 +0200 Subject: [PATCH] fix build --- .../plus/views/mapwidgets/AppearanceWidgetsFactory.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/views/mapwidgets/AppearanceWidgetsFactory.java b/OsmAnd/src/net/osmand/plus/views/mapwidgets/AppearanceWidgetsFactory.java index e879e9cafb..6285a6f643 100644 --- a/OsmAnd/src/net/osmand/plus/views/mapwidgets/AppearanceWidgetsFactory.java +++ b/OsmAnd/src/net/osmand/plus/views/mapwidgets/AppearanceWidgetsFactory.java @@ -181,9 +181,8 @@ public class AppearanceWidgetsFactory { try { Field f = R.drawable.class.getField("widget_" + p.getAttrName().toLowerCase()); icon = f.getInt(null); + //TODO: Use "widget_no_icon" where no widget icon exists } 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() { @@ -201,9 +200,8 @@ public class AppearanceWidgetsFactory { try { Field f = R.drawable.class.getField("widget_" + p.getAttrName().toLowerCase()); icon = f.getInt(null); + //TODO: Use "widget_no_icon" where no widget icon exists } 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() {