mirror of
https://github.com/peterosterlund2/droidfish.git
synced 2024-11-30 07:28:26 +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:
parent
eabe60e65f
commit
93b3434af9
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user