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

Commit a7c41cda authored by elektroschmock's avatar elektroschmock Committed by Gerrit Code Review
Browse files

frameworks/base: Zen mode add 10 and 12 hours downtime

Change-Id: I80304c58e5e4bb23a556896aa9f6c325f313ad65
parent e7b02bf2
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -61,7 +61,8 @@ public class ZenModeConfig implements Parcelable {
    public static final int[] WEEKNIGHT_DAYS = { Calendar.SUNDAY, Calendar.MONDAY, Calendar.TUESDAY,
            Calendar.WEDNESDAY, Calendar.THURSDAY };

    public static final int[] MINUTE_BUCKETS = new int[] { 15, 30, 45, 60, 120, 180, 240, 480 };
    public static final int[] MINUTE_BUCKETS = new int[] { 15, 30, 45, 60, 120, 180, 240, 480, 600,
            720 };
    private static final int SECONDS_MS = 1000;
    private static final int MINUTES_MS = 60 * SECONDS_MS;
    private static final int ZERO_VALUE_MS = 10 * SECONDS_MS;
+1 −1
Original line number Diff line number Diff line
@@ -67,7 +67,7 @@ public class ZenModePanel extends LinearLayout {
    private static final int MINUTES_MS = 60 * SECONDS_MS;

    private static final int[] MINUTE_BUCKETS = DEBUG
            ? new int[] { 0, 1, 2, 5, 15, 30, 45, 60, 120, 180, 240, 480 }
            ? new int[] { 0, 1, 2, 5, 15, 30, 45, 60, 120, 180, 240, 480, 600, 720 }
            : ZenModeConfig.MINUTE_BUCKETS;
    private static final int MIN_BUCKET_MINUTES = MINUTE_BUCKETS[0];
    private static final int MAX_BUCKET_MINUTES = MINUTE_BUCKETS[MINUTE_BUCKETS.length - 1];