Force Settings to align locales of embedded activities

Android 13 introduces the feature of per-app language that allows
users to set a preferred language for each app. However, Settings
embeds many activities from different apps, which may cause
multiple languages to be displayed on one Settings page.

Enable TaskLocaleOverride to align the locales of activities
launched in the same task.

Bug: 199277729
Test: Verified on Cuttlefish
Change-Id: I9ee2b8c481f9c0cb5f17eb1cea037317df35e9d9
This commit is contained in:
Calvin Pan
2023-01-13 12:51:31 +08:00
parent 89e5b837b9
commit f03d4106fa

View File

@@ -241,6 +241,8 @@ public class SettingsHomepageActivity extends FragmentActivity implements
updateHomepagePaddings();
updateSplitLayout();
enableTaskLocaleOverride();
}
@VisibleForTesting