try get resource comparison right
This commit is contained in:
parent
10992b53b8
commit
ea5431816f
1 changed files with 1 additions and 1 deletions
|
@ -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 + ")");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue