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

Commit 837b9675 authored by Kim Le's avatar Kim Le Committed by Abhisek Devkota
Browse files

Revert "base: zenmode: add 90 minutes downtime"

This reverts commit 462c9b9b.

Wrong visualisation of the 90 min downtime

Change-Id: I511305f1d6d388f34b90c1ecf2dfb9d9ba4de020
parent 3a269220
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -61,8 +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, 90, 120, 180, 240, 480,
         600, 720 };
    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
@@ -68,7 +68,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, 90, 120, 180, 240, 480, 600, 720 }
            ? 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];