Return unmodified string and fix format
This commit is contained in:
parent
dcfb4f9089
commit
59842c2209
2 changed files with 9 additions and 9 deletions
|
@ -155,8 +155,8 @@ public abstract class SettingsBaseActivity extends SherlockPreferenceActivity im
|
||||||
|
|
||||||
public static String getStringPropertyValue(Context ctx, String propertyValue) {
|
public static String getStringPropertyValue(Context ctx, String propertyValue) {
|
||||||
try {
|
try {
|
||||||
propertyValue = propertyValue.replaceAll("\\s+","_");
|
final String propertyValueReplaced = propertyValue.replaceAll("\\s+","_");
|
||||||
Field f = R.string.class.getField("rendering_value_" + propertyValue + "_name");
|
Field f = R.string.class.getField("rendering_value_" + propertyValueReplaced + "_name");
|
||||||
if (f != null) {
|
if (f != null) {
|
||||||
Integer in = (Integer) f.get(null);
|
Integer in = (Integer) f.get(null);
|
||||||
return ctx.getString(in);
|
return ctx.getString(in);
|
||||||
|
|
Loading…
Reference in a new issue