From 93b3434af980098f9c71b2bfcfaac72b805c3eb5 Mon Sep 17 00:00:00 2001 From: Peter Osterlund Date: Sat, 15 Jun 2019 11:27:04 +0200 Subject: [PATCH] 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. --- DroidFishApp/src/main/java/org/petero/droidfish/DroidFish.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/DroidFishApp/src/main/java/org/petero/droidfish/DroidFish.java b/DroidFishApp/src/main/java/org/petero/droidfish/DroidFish.java index 4040549..ee88fce 100644 --- a/DroidFishApp/src/main/java/org/petero/droidfish/DroidFish.java +++ b/DroidFishApp/src/main/java/org/petero/droidfish/DroidFish.java @@ -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;