[Update] Expose the regional preferences pages
1. Link ACTION_MEASUREMENT_SYSTEM_SETTINGS to MeasurementSystemItemFragment 2. Link ACTION_NUMBERING_SYSTEM_SETTINGS to NumberingPreferencesFragment 3. Link ACTION_REGION_SETTINGS to RegionPickerFragment 4. Deprecate NumberingPreferencesFragment Bug: 381038747 Flag: android.provider.system_regional_preferences_api_enabled Test: use test app to try intent ACTION, atest Change-Id: Id76e589ce25ae5dfc3443948300c6c21ab30672c
This commit is contained in:
@@ -1117,6 +1117,54 @@
|
||||
android:value="true"/>
|
||||
</activity>
|
||||
|
||||
<activity
|
||||
android:name=".Settings$RegionSettingsActivity"
|
||||
android:label="@string/region_picker_preference_title"
|
||||
android:exported="true" >
|
||||
<intent-filter android:priority="1">
|
||||
<action android:name="android.settings.REGION_SETTINGS" />
|
||||
<category android:name="android.intent.category.DEFAULT" />
|
||||
</intent-filter>
|
||||
<meta-data android:name="com.android.settings.FRAGMENT_CLASS"
|
||||
android:value="com.android.settings.regionalpreferences.RegionPickerFragment"/>
|
||||
<meta-data android:name="com.android.settings.HIGHLIGHT_MENU_KEY"
|
||||
android:value="@string/menu_key_system"/>
|
||||
<meta-data android:name="com.android.settings.PRIMARY_PROFILE_CONTROLLED"
|
||||
android:value="true"/>
|
||||
</activity>
|
||||
|
||||
<activity
|
||||
android:name=".Settings$NumberingSystemSettingsActivity"
|
||||
android:label="@string/numbers_preferences_title"
|
||||
android:exported="true" >
|
||||
<intent-filter android:priority="1">
|
||||
<action android:name="android.settings.NUMBERING_SYSTEM_SETTINGS" />
|
||||
<category android:name="android.intent.category.DEFAULT" />
|
||||
</intent-filter>
|
||||
<meta-data android:name="com.android.settings.FRAGMENT_CLASS"
|
||||
android:value="com.android.settings.regionalpreferences.NumberingSystemLocaleListFragment"/>
|
||||
<meta-data android:name="com.android.settings.HIGHLIGHT_MENU_KEY"
|
||||
android:value="@string/menu_key_system"/>
|
||||
<meta-data android:name="com.android.settings.PRIMARY_PROFILE_CONTROLLED"
|
||||
android:value="true"/>
|
||||
</activity>
|
||||
|
||||
<activity
|
||||
android:name=".Settings$MeasurementSystemSettingsActivity"
|
||||
android:label="@string/measurement_system_preferences_title"
|
||||
android:exported="true" >
|
||||
<intent-filter android:priority="1">
|
||||
<action android:name="android.settings.MEASUREMENT_SYSTEM_SETTINGS" />
|
||||
<category android:name="android.intent.category.DEFAULT" />
|
||||
</intent-filter>
|
||||
<meta-data android:name="com.android.settings.FRAGMENT_CLASS"
|
||||
android:value="com.android.settings.regionalpreferences.MeasurementSystemItemFragment"/>
|
||||
<meta-data android:name="com.android.settings.HIGHLIGHT_MENU_KEY"
|
||||
android:value="@string/menu_key_system"/>
|
||||
<meta-data android:name="com.android.settings.PRIMARY_PROFILE_CONTROLLED"
|
||||
android:value="true"/>
|
||||
</activity>
|
||||
|
||||
<activity
|
||||
android:name=".Settings$RegionalPreferencesActivity"
|
||||
android:label="@string/regional_preferences_title"
|
||||
|
||||
Reference in New Issue
Block a user