Migrate Settings intents
to our new modes ui Fixes: 333909883 Test: manual - created test app that launches each intent, launched each with flag on and flag off Test: atest com.android.settings.notification.modes Flag: android.app.modes_ui Change-Id: I8259b554fe34b453880890c667165547033ccd06
This commit is contained in:
@@ -1287,20 +1287,63 @@
|
||||
</activity>
|
||||
|
||||
<activity
|
||||
android:name="Settings$ZenModeSettingsActivity"
|
||||
android:name="Settings$ModesSettingsActivity"
|
||||
android:label="@string/zen_mode_settings_title"
|
||||
android:icon="@drawable/ic_homepage_notification"
|
||||
android:exported="true">
|
||||
<intent-filter android:priority="1">
|
||||
<intent-filter android:priority="1"
|
||||
android:featureFlag="android.app.modes_ui">
|
||||
<action android:name="android.settings.ZEN_MODE_SETTINGS" />
|
||||
<category android:name="android.intent.category.DEFAULT" />
|
||||
</intent-filter>
|
||||
<intent-filter android:priority="1">
|
||||
<intent-filter android:priority="1"
|
||||
android:featureFlag="android.app.modes_ui">
|
||||
<action android:name="android.settings.ZEN_MODE_PRIORITY_SETTINGS" />
|
||||
<category android:name="android.intent.category.BROWSABLE" />
|
||||
<category android:name="android.intent.category.DEFAULT" />
|
||||
</intent-filter>
|
||||
<intent-filter android:priority="41">
|
||||
<intent-filter android:priority="41"
|
||||
android:featureFlag="android.app.modes_ui">
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
<category android:name="com.android.settings.SHORTCUT" />
|
||||
</intent-filter>
|
||||
<intent-filter android:priority="10"
|
||||
android:featureFlag="android.app.modes_ui">
|
||||
<action android:name="android.settings.ZEN_MODE_AUTOMATION_SETTINGS" />
|
||||
<category android:name="android.intent.category.DEFAULT" />
|
||||
</intent-filter>
|
||||
<intent-filter android:priority="10"
|
||||
android:featureFlag="android.app.modes_ui">
|
||||
<action android:name="android.settings.ACTION_CONDITION_PROVIDER_SETTINGS" />
|
||||
<category android:name="android.intent.category.BROWSABLE" />
|
||||
<category android:name="android.intent.category.DEFAULT" />
|
||||
</intent-filter>
|
||||
<meta-data android:name="com.android.settings.FRAGMENT_CLASS"
|
||||
android:value="com.android.settings.notification.modes.ZenModesListFragment"/>
|
||||
<meta-data android:name="com.android.settings.HIGHLIGHT_MENU_KEY"
|
||||
android:value="@string/menu_key_notifications"/>
|
||||
<meta-data android:name="com.android.settings.PRIMARY_PROFILE_CONTROLLED"
|
||||
android:value="true" />
|
||||
</activity>
|
||||
|
||||
<activity
|
||||
android:name="Settings$ZenModeSettingsActivity"
|
||||
android:label="@string/zen_mode_settings_title"
|
||||
android:icon="@drawable/ic_homepage_notification"
|
||||
android:exported="true">
|
||||
<intent-filter android:priority="1"
|
||||
android:featureFlag="!android.app.modes_ui">
|
||||
<action android:name="android.settings.ZEN_MODE_SETTINGS" />
|
||||
<category android:name="android.intent.category.DEFAULT" />
|
||||
</intent-filter>
|
||||
<intent-filter android:priority="1"
|
||||
android:featureFlag="!android.app.modes_ui">
|
||||
<action android:name="android.settings.ZEN_MODE_PRIORITY_SETTINGS" />
|
||||
<category android:name="android.intent.category.BROWSABLE" />
|
||||
<category android:name="android.intent.category.DEFAULT" />
|
||||
</intent-filter>
|
||||
<intent-filter android:priority="41"
|
||||
android:featureFlag="!android.app.modes_ui">
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
<category android:name="com.android.settings.SHORTCUT" />
|
||||
</intent-filter>
|
||||
@@ -1312,6 +1355,20 @@
|
||||
android:value="true" />
|
||||
</activity>
|
||||
|
||||
<activity
|
||||
android:name="Settings$ModeSettingsActivity"
|
||||
android:exported="true">
|
||||
<intent-filter android:priority="1"
|
||||
android:featureFlag="android.app.modes_ui">
|
||||
<action android:name="android.settings.AUTOMATIC_ZEN_RULE_SETTINGS" />
|
||||
<category android:name="android.intent.category.DEFAULT" />
|
||||
</intent-filter>
|
||||
<meta-data android:name="com.android.settings.FRAGMENT_CLASS"
|
||||
android:value="com.android.settings.notification.modes.ZenModeFragment"/>
|
||||
<meta-data android:name="com.android.settings.PRIMARY_PROFILE_CONTROLLED"
|
||||
android:value="true" />
|
||||
</activity>
|
||||
|
||||
<activity
|
||||
android:name=".notification.zen.ZenSuggestionActivity"
|
||||
android:label="@string/zen_mode_settings_title"
|
||||
@@ -1351,11 +1408,13 @@
|
||||
android:label="@string/zen_mode_automation_settings_title"
|
||||
android:icon="@drawable/ic_notifications"
|
||||
android:exported="true">
|
||||
<intent-filter android:priority="1">
|
||||
<intent-filter android:priority="10"
|
||||
android:featureFlag="!android.app.modes_ui">
|
||||
<action android:name="android.settings.ZEN_MODE_AUTOMATION_SETTINGS" />
|
||||
<category android:name="android.intent.category.DEFAULT" />
|
||||
</intent-filter>
|
||||
<intent-filter android:priority="1">
|
||||
<intent-filter android:priority="10"
|
||||
android:featureFlag="!android.app.modes_ui">
|
||||
<action android:name="android.settings.ACTION_CONDITION_PROVIDER_SETTINGS" />
|
||||
<category android:name="android.intent.category.BROWSABLE" />
|
||||
<category android:name="android.intent.category.DEFAULT" />
|
||||
|
||||
Reference in New Issue
Block a user