mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-06-04 05:40:17 +00:00
update for testing, fix for default locale
This commit is contained in:
parent
06c15da893
commit
df421183c3
1 changed files with 16 additions and 1 deletions
|
@ -55,7 +55,7 @@ public final class SecondaryLocaleSettingsFragment extends SubScreenFragment {
|
||||||
mRichImm.refreshSubtypeCaches();
|
mRichImm.refreshSubtypeCaches();
|
||||||
getPreferenceScreen().removeAll();
|
getPreferenceScreen().removeAll();
|
||||||
final Context context = getActivity();
|
final Context context = getActivity();
|
||||||
List<InputMethodSubtype> subtypes = mRichImm.getMyEnabledInputMethodSubtypeList(false);
|
List<InputMethodSubtype> subtypes = mRichImm.getMyEnabledInputMethodSubtypeList(true);
|
||||||
|
|
||||||
for (InputMethodSubtype subtype : subtypes) {
|
for (InputMethodSubtype subtype : subtypes) {
|
||||||
final Locale secondaryLocale = Settings.getSecondaryLocale(getSharedPreferences(), subtype.getLocale());
|
final Locale secondaryLocale = Settings.getSecondaryLocale(getSharedPreferences(), subtype.getLocale());
|
||||||
|
@ -150,6 +150,21 @@ public final class SecondaryLocaleSettingsFragment extends SubScreenFragment {
|
||||||
|
|
||||||
// TODO: also get locales from assets
|
// TODO: also get locales from assets
|
||||||
// need merged "compress" PR
|
// need merged "compress" PR
|
||||||
|
// for testing: add some latin locales
|
||||||
|
if (asciiCapable) {
|
||||||
|
locales.add("da");
|
||||||
|
locales.add("de");
|
||||||
|
locales.add("en");
|
||||||
|
locales.add("es");
|
||||||
|
locales.add("fr");
|
||||||
|
locales.add("hu");
|
||||||
|
locales.add("it");
|
||||||
|
locales.add("nl");
|
||||||
|
locales.add("pl");
|
||||||
|
locales.add("ro");
|
||||||
|
locales.add("tr");
|
||||||
|
locales.add("sv");
|
||||||
|
}
|
||||||
final File[] directoryList = DictionaryInfoUtils.getCachedDirectoryList(getActivity());
|
final File[] directoryList = DictionaryInfoUtils.getCachedDirectoryList(getActivity());
|
||||||
for (File directory : directoryList) {
|
for (File directory : directoryList) {
|
||||||
if (!directory.isDirectory()) continue;
|
if (!directory.isDirectory()) continue;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue