Update default values
This commit is contained in:
parent
eee2db4a38
commit
6c6534e7c0
1 changed files with 3 additions and 0 deletions
|
@ -171,6 +171,9 @@ public abstract class SettingsBaseActivity extends ActionBarPreferenceActivity
|
||||||
|
|
||||||
public static String getStringPropertyValue(Context ctx, String propertyValue) {
|
public static String getStringPropertyValue(Context ctx, String propertyValue) {
|
||||||
try {
|
try {
|
||||||
|
if(propertyValue == null) {
|
||||||
|
return "";
|
||||||
|
}
|
||||||
final String propertyValueReplaced = propertyValue.replaceAll("\\s+","_");
|
final String propertyValueReplaced = propertyValue.replaceAll("\\s+","_");
|
||||||
Field f = R.string.class.getField("rendering_value_" + propertyValueReplaced + "_name");
|
Field f = R.string.class.getField("rendering_value_" + propertyValueReplaced + "_name");
|
||||||
if (f != null) {
|
if (f != null) {
|
||||||
|
|
Loading…
Reference in a new issue