From 73049543b6510ef3027d76493f7ceb87d8d6db00 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste <87148630+Jean-BaptisteC@users.noreply.github.com> Date: Thu, 13 Oct 2022 14:56:49 +0200 Subject: [PATCH] [android] Enable per-app language for Android 13+ (#3584) * [Android]Update appcompat to 1.6.0-rc01 Signed-off-by: Jean-Baptiste CHARRON * [android] Add Per-app language preferences Add properties in AndroidManifest Create locales config with all languages Signed-off-by: Jean-Baptiste CHARRON * Added newline Signed-off-by: Jean-Baptiste CHARRON Co-authored-by: Alexander Borsuk <170263+biodranik@users.noreply.github.com> --- android/AndroidManifest.xml | 1 + android/build.gradle | 2 +- android/res/xml/locales_config.xml | 45 ++++++++++++++++++++++++++++++ 3 files changed, 47 insertions(+), 1 deletion(-) create mode 100644 android/res/xml/locales_config.xml diff --git a/android/AndroidManifest.xml b/android/AndroidManifest.xml index 46497ea8ea..7b8a8946a3 100644 --- a/android/AndroidManifest.xml +++ b/android/AndroidManifest.xml @@ -58,6 +58,7 @@ android:dataExtractionRules="@xml/backup_content_v31" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" + android:localeConfig="@xml/locales_config" android:theme="@style/MwmTheme" android:supportsRtl="true" android:networkSecurityConfig="@xml/network_security_config" diff --git a/android/build.gradle b/android/build.gradle index 8792bf0889..33dfc54100 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -83,7 +83,7 @@ dependencies { } implementation 'androidx.annotation:annotation:1.5.0' - implementation 'androidx.appcompat:appcompat:1.5.1' + implementation 'androidx.appcompat:appcompat:1.6.0-rc01' implementation 'androidx.constraintlayout:constraintlayout:2.1.4' implementation 'androidx.fragment:fragment:1.5.3' // Lifecycle is added as a workaround for duplicate classes error caused by some outdated dependency: diff --git a/android/res/xml/locales_config.xml b/android/res/xml/locales_config.xml new file mode 100644 index 0000000000..59e05dbef9 --- /dev/null +++ b/android/res/xml/locales_config.xml @@ -0,0 +1,45 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +