Debug: reset locales

This commit is contained in:
M66B 2022-06-16 08:33:35 +02:00
parent 855e277e83
commit 8f1fd6350a
1 changed files with 5 additions and 0 deletions

View File

@ -40,6 +40,8 @@ import android.webkit.CookieManager;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatDelegate;
import androidx.core.os.LocaleListCompat;
import androidx.emoji2.text.DefaultEmojiCompatConfig;
import androidx.emoji2.text.EmojiCompat;
import androidx.emoji2.text.FontRequestEmojiCompatConfig;
@ -62,6 +64,9 @@ public class ApplicationEx extends Application
}
static Context getLocalizedContext(Context context) {
if (BuildConfig.DEBUG && Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU && false)
AppCompatDelegate.setApplicationLocales(LocaleListCompat.getEmptyLocaleList());
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
if (prefs.contains("english")) {