From 4d4ed7330dc0bd8ed9cba5331ee934b9648da8ba Mon Sep 17 00:00:00 2001 From: jmir1 Date: Tue, 10 Aug 2021 17:56:56 +0200 Subject: [PATCH] set default locale when changing app language --- app/build.gradle.kts | 2 +- .../main/java/eu/kanade/tachiyomi/util/system/LocaleHelper.kt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index dc209764b..85fe2f30d 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -87,7 +87,7 @@ android { dimension = "default" } create("dev") { - resConfigs("en", "xxhdpi") + resConfigs("en", "fr", "de", "ar", "xxhdpi") dimension = "default" } } diff --git a/app/src/main/java/eu/kanade/tachiyomi/util/system/LocaleHelper.kt b/app/src/main/java/eu/kanade/tachiyomi/util/system/LocaleHelper.kt index d072e48e6..deaa6be68 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/util/system/LocaleHelper.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/util/system/LocaleHelper.kt @@ -62,6 +62,7 @@ object LocaleHelper { } else { newConfiguration.setLocale(appLocale) } + Locale.setDefault(appLocale) return ContextWrapper(context.createConfigurationContext(newConfiguration)) }