mirror of https://github.com/M66B/FairEmail.git
Debug: reset locales
This commit is contained in:
parent
855e277e83
commit
8f1fd6350a
|
@ -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 New Issue