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

Commit 04f77b3a authored by Alison Cichowlas's avatar Alison Cichowlas
Browse files

Notification settings update.

- Use "what happens" descriptors instead of priority level names in summary
- Group some settings under Advanced header.

Bug: 62705435
Test: make RunSettingsRoboTests; manual verification
Merged-In: Iac31575d894d7f3532c8e631ee9d77ee21830b29
Change-Id: Iac31575d894d7f3532c8e631ee9d77ee21830b29
parent 5651e0f2
Loading
Loading
Loading
Loading
+21 −15
Original line number Diff line number Diff line
@@ -37,6 +37,9 @@
        android:title="@string/notification_vibrate_title"
        settings:useAdditionalSummary="true" />

    <PreferenceCategory
        android:title="@string/advanced_apps">

        <!-- Show badge -->
        <com.android.settingslib.RestrictedSwitchPreference
            android:key="badge"
@@ -61,4 +64,7 @@
            android:title="@string/app_notification_override_dnd_title"
            android:summary="@string/app_notification_override_dnd_summary"
            settings:useAdditionalSummary="true" />

    </PreferenceCategory>

</PreferenceScreen>
+4 −4
Original line number Diff line number Diff line
@@ -339,15 +339,15 @@ public class AppNotificationSettings extends NotificationSettingsBase {
            case NotificationManager.IMPORTANCE_NONE:
                return getContext().getString(R.string.notification_toggle_off);
            case NotificationManager.IMPORTANCE_MIN:
                return getContext().getString(R.string.notification_importance_min_title);
                return getContext().getString(R.string.notification_importance_min);
            case NotificationManager.IMPORTANCE_LOW:
                return getContext().getString(R.string.notification_importance_low_title);
                return getContext().getString(R.string.notification_importance_low);
            case NotificationManager.IMPORTANCE_DEFAULT:
                return getContext().getString(R.string.notification_importance_default_title);
                return getContext().getString(R.string.notification_importance_default);
            case NotificationManager.IMPORTANCE_HIGH:
            case NotificationManager.IMPORTANCE_MAX:
            default:
                return getContext().getString(R.string.notification_importance_high_title);
                return getContext().getString(R.string.notification_importance_high);
        }

    }