From ea5431816fcf913ab007a715da9ecbeab2d504a2 Mon Sep 17 00:00:00 2001 From: sonora Date: Wed, 7 Jan 2015 22:14:29 +0100 Subject: [PATCH] try get resource comparison right --- .../src/net/osmand/plus/activities/SettingsGeneralActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/activities/SettingsGeneralActivity.java b/OsmAnd/src/net/osmand/plus/activities/SettingsGeneralActivity.java index fc6afaff8a..543935f822 100644 --- a/OsmAnd/src/net/osmand/plus/activities/SettingsGeneralActivity.java +++ b/OsmAnd/src/net/osmand/plus/activities/SettingsGeneralActivity.java @@ -257,7 +257,7 @@ public class SettingsGeneralActivity extends SettingsBaseActivity { getString(R.string.lang_cy) + incompleteSuffix,}; registerListPreference(settings.PREFERRED_LOCALE, screen, entries, entrieValues); // Display "Device language" in Latin for all non-en languages - if (!R.string.preferred_locale.getText().toString().equals(R.string.preferred_locale_no_translate.getText().toString())) { + if (!getResources().getString(R.string.preferred_locale).getText().equals(getResources().getString(R.string.preferred_locale_no_translate).getText())) { ((ListPreference) screen.findPreference(settings.PREFERRED_LOCALE.getId())).setTitle(R.string.preferred_locale + " (" + R.string.preferred_locale_no_translate + ")"); } }