From 9866a7b50fa07b2e56372fa66ac994e3ba988589 Mon Sep 17 00:00:00 2001 From: sonora Date: Mon, 3 Sep 2012 22:13:12 +0200 Subject: [PATCH] test old descr as title in Configure screen submenus 5 --- OsmAnd/src/net/osmand/plus/activities/SettingsActivity.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/activities/SettingsActivity.java b/OsmAnd/src/net/osmand/plus/activities/SettingsActivity.java index 142959f069..be1174770d 100644 --- a/OsmAnd/src/net/osmand/plus/activities/SettingsActivity.java +++ b/OsmAnd/src/net/osmand/plus/activities/SettingsActivity.java @@ -132,10 +132,11 @@ public class SettingsActivity extends PreferenceActivity implements OnPreference Field f = R.string.class.getField("rendering_attr_" + propertyName + "_description"); if (f != null) { Integer in = (Integer) f.get(null); - return getString(in); + return ctx.getString(in); } } catch (Exception e) { - e.printStackTrace(); + //e.printStackTrace(); + System.err.println(e.getMessage()); } return defValue; }