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

Commit 7af10188 authored by John Spurlock's avatar John Spurlock
Browse files

Zen: Changes to support new automation settings sub-section.

Bug: 20064962
Change-Id: I1da5bd1f8ef52a070b8225da4b761979f290df77
parent fc746f8a
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -847,6 +847,15 @@ public final class Settings {
    public static final String ACTION_ZEN_MODE_PRIORITY_SETTINGS
            = "android.settings.ZEN_MODE_PRIORITY_SETTINGS";

    /**
     * Activity Action: Show Zen Mode automation configuration settings.
     *
     * @hide
     */
    @SdkConstant(SdkConstantType.ACTIVITY_INTENT_ACTION)
    public static final String ACTION_ZEN_MODE_AUTOMATION_SETTINGS
            = "android.settings.ZEN_MODE_AUTOMATION_SETTINGS";

    /**
     * Activity Action: Show the regulatory information screen for the device.
     * <p>
+1 −0
Original line number Diff line number Diff line
@@ -40,6 +40,7 @@ public class MetricsLogger implements MetricsConstants {

    public static final int MANAGE_PERMISSIONS = 142;
    public static final int NOTIFICATION_ZEN_MODE_PRIORITY = 143;
    public static final int NOTIFICATION_ZEN_MODE_AUTOMATION = 144;

    public static void visible(Context context, int category) throws IllegalArgumentException {
        if (Build.IS_DEBUGGABLE && category == VIEW_UNKNOWN) {