mirror of
https://github.com/peterosterlund2/droidfish.git
synced 2025-12-08 07:11:32 +01:00
Disable language setting code for API >= 28
The existing code does not work for API >= 28 and it is unknown how to make it work.
This commit is contained in:
@@ -1360,6 +1360,8 @@ public class DroidFish extends Activity
|
||||
}
|
||||
|
||||
private void setLanguage(String lang) {
|
||||
if (Build.VERSION.SDK_INT >= 28)
|
||||
return; // Unknown how to make this work for API level 28
|
||||
Locale newLocale;
|
||||
if ("default".equals(lang)) {
|
||||
newLocale = Resources.getSystem().getConfiguration().locale;
|
||||
|
||||
Reference in New Issue
Block a user