1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-22 15:55:57 +00:00

Debug: reset locales

This commit is contained in:
M66B 2022-06-16 08:33:35 +02:00
parent 855e277e83
commit 8f1fd6350a

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")) {