Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 022a8150 authored by Amith Yamasani's avatar Amith Yamasani
Browse files

Intent handler for new BACKGROUND_RESTRICTIONS_SETTINGS

Use the existing battery usage screen as entry point
for ACTION_BACKGROUND_RESTRICTIONS_SETTINGS.

Bug: 320150834
Test: am start -a android.settings.BACKGROUND_RESTRICTIONS_SETTINGS
      atest ActivityManagerTest#testBackgroundRestrictionsIntent
Change-Id: I479ab666334eeb3232a9200b70a6d3ce2ddd2ad9
parent 74f8cb6e
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1704,6 +1704,12 @@
                <category android:name="android.intent.category.BROWSABLE" />
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
            <intent-filter android:priority="1">
                <action android:name="android.settings.BACKGROUND_RESTRICTIONS_SETTINGS" />
                <category android:name="android.intent.category.BROWSABLE" />
                <category android:name="android.intent.category.DEFAULT" />
                <data android:scheme="package" />
            </intent-filter>
            <meta-data android:name="com.android.settings.FRAGMENT_CLASS"
                android:value="com.android.settings.applications.manageapplications.ManageApplications" />
            <meta-data android:name="com.android.settings.HIGHLIGHT_MENU_KEY"