Merge branch 'master' into av/multiplatform-merge-master

This commit is contained in:
Avently committed 2023-07-20 20:35:08 +07:00
commit 77d249cc37
3 files changed
+2 -3

No files matched your search

@@ -22,8 +22,7 @@ fun Activity.saveAppLocale(pref: SharedPreference<String?>, languageCode: String
fun Activity.applyAppLocale(pref: SharedPreference<String?>) {
// if (Build.VERSION.SDK_INT < Build.VERSION_CODES.TIRAMISU) {
val lang = pref.get()
if (lang == null || lang == Locale.getDefault().language) return
val lang = pref.get() ?: return
applyLocale(Locale.forLanguageTag(lang))
// }
}