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:
Peter Osterlund 2019-06-15 11:27:04 +02:00
parent eabe60e65f
commit 93b3434af9

View File

@ -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;