test old descr as title in Configure screen submenus 5
This commit is contained in:
parent
5fa83b856b
commit
9866a7b50f
1 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue