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

Commit 802ddf99 authored by John Spurlock's avatar John Spurlock
Browse files

Settings: New application-level notification settings.

 - Convert the old application-level dialog to an activity.
 - Move the settings icon to the new activity (out of the list).
 - Add a custom application header, similar to the switch bar style.
 - Use the ubiquitous vector gear for the settings icon.
 - Migrate old checkboxes to switch prefs, add new summaries.
 - Remove obsolete artifacts.

Bug:16396715
Change-Id: I857e3cf448b79f44fe1c242e6020f5214434c00c
parent f3dfd182
Loading
Loading
Loading
Loading
+10 −5
Original line number Diff line number Diff line
@@ -1839,25 +1839,30 @@
                android:resource="@id/notification_settings" />
        </activity>

        <activity android:name="Settings$AppNotificationSettingsActivity"
        <!-- Show apps for which application-level notification settings are applicable -->
        <activity android:name="Settings$NotificationAppListActivity"
                android:label="@string/app_notifications_title"
                android:exported="true"
                android:taskAffinity="">
            <meta-data android:name="com.android.settings.FRAGMENT_CLASS"
                android:value="com.android.settings.notification.AppNotificationSettings" />
                android:value="com.android.settings.notification.NotificationAppList" />
            <meta-data android:name="com.android.settings.TOP_LEVEL_HEADER_ID"
                android:resource="@id/notification_settings" />
        </activity>

        <activity android:name=".notification.AppNotificationDialog"
                android:theme="@style/Theme.AlertDialog"
                android:launchMode="singleTop"
        <!-- Show application-level notification settings (app passed in as extras) -->
        <activity android:name="Settings$AppNotificationSettingsActivity"
                android:label="@string/app_notifications_title"
                android:exported="true">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <action android:name="android.settings.APP_NOTIFICATION_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.AppNotificationSettings" />
            <meta-data android:name="com.android.settings.TOP_LEVEL_HEADER_ID"
                android:resource="@id/notification_settings" />
        </activity>

        <!-- Show regulatory info (from settings item or dialing "*#07#") -->
−1.47 KiB
Loading image diff...
−969 B
Loading image diff...
−2 KiB
Loading image diff...
−2.9 KiB
Loading image diff...
Loading