mirror of
https://github.com/oxen-io/session-android.git
synced 2025-02-19 19:58:26 +00:00
Fix for AIOBE when language is no longer supported.
// FREEBIE
This commit is contained in:
parent
8c96f9fd93
commit
50f079af8c
@ -50,6 +50,9 @@ public class AppearancePreferenceFragment extends ListSummaryPreferenceFragment
|
||||
int langIndex = Arrays.asList(languageEntryValues).indexOf(TextSecurePreferences.getLanguage(context));
|
||||
int themeIndex = Arrays.asList(themeEntryValues).indexOf(TextSecurePreferences.getTheme(context));
|
||||
|
||||
if (langIndex == -1) langIndex = 0;
|
||||
if (themeIndex == -1) themeIndex = 0;
|
||||
|
||||
return context.getString(R.string.preferences__theme_summary, themeEntries[themeIndex]) + ", " +
|
||||
context.getString(R.string.preferences__language_summary, languageEntries[langIndex]);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user