Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b588757a authored by Abhishek G's avatar Abhishek G Committed by Gerrit Code Review
Browse files

Feijao: empty string is not a valid locale

Empty string is not a valid locale. Setting the default locale
to english (en).

Change-Id: I7bc524dbb4aa65d31f1bb33fa5e8fadf4770fbaf
Issue-Id: FEIJ-306, CD-620
parent 7a3137be
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -87,7 +87,7 @@ public class DisplayOptionsSettingsFragment extends PreferenceFragment
        String[] values = new String[len];

        entries[0] = getString(R.string.t9_search_input_locale_default);
        values[0] = "";
        values[0] = Locale.getDefault().getLanguage();

        // add locales programatically so we can use locale.getDisplayName
        for (int i = 0; i < T9_SEARCH_INPUT_LOCALES.length; i++) {
@@ -105,5 +105,8 @@ public class DisplayOptionsSettingsFragment extends PreferenceFragment

        mT9SearchInputLocale.setEntries(entries);
        mT9SearchInputLocale.setEntryValues(values);
        if (mT9SearchInputLocale.getValue().equals("")) {
            mT9SearchInputLocale.setValueIndex(0);
        }
    }
}