Show dialog when user chnages the region

1. show dialog
2. change the region of the top locale

Bug: 385047778
Flag: com.android.settings.flags.regional_preferences_api_enabled
Test: check hsv, atest
Change-Id: I9746cdec670899b3768dcd1e0aa59e1959dd7e06
This commit is contained in:
danielwbhuang
2024-12-20 20:43:48 +08:00
parent 1ef5e68927
commit 833a0e3c92
6 changed files with 258 additions and 24 deletions

View File

@@ -75,6 +75,8 @@ public class RegionPickerFragment extends DashboardFragment{
new SystemRegionAllListPreferenceController(
context, KEY_PREFERENCE_SYSTEM_REGION_LIST, parentLocaleInfo);
final List<AbstractPreferenceController> controllers = new ArrayList<>();
mSuggestedListPreferenceController.setFragment(this);
mSystemRegionAllListPreferenceController.setFragment(this);
controllers.add(mSuggestedListPreferenceController);
controllers.add(mSystemRegionAllListPreferenceController);
return controllers;