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:
parent
855e277e83
commit
8f1fd6350a
1 changed files with 5 additions and 0 deletions
|
@ -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")) {
|
||||
|
|
Loading…
Reference in a new issue