mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2026-10-04 11:25:46 -04:00
- Rewrite to input bridge v3
- Language switcher: fix crash on select the final item.
This commit is contained in:
1 parent
dc4ca549d9
commit
0123ae62d6
5 files changed
+183
-162
No files matched your search
@@ -234,12 +234,13 @@ public class PojavLoginActivity extends AppCompatActivity
|
||||
if (position == 0) {
|
||||
locale = Locale.getDefault();
|
||||
} else {
|
||||
locale = Locale.getAvailableLocales()[position + 1];
|
||||
locale = Locale.getAvailableLocales()[position - 1];
|
||||
}
|
||||
Locale.setDefault(locale);
|
||||
Configuration config = new Configuration();
|
||||
config.locale = locale;
|
||||
getBaseContext().getResources().updateConfiguration(config, getBaseContext().getResources().getDisplayMetrics());
|
||||
config.setLocale(locale);
|
||||
// TODO replace deprecated
|
||||
getResources().updateConfiguration(config, getResources().getDisplayMetrics());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user