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

Commit 32e69d4e authored by Danny Baumann's avatar Danny Baumann Committed by Gerrit Code Review
Browse files

Merge "Quiet Hours: Allow disabling phone ringer (1/3)" into cm-11.0

parents ca5f8cb1 97e19ba5
Loading
Loading
Loading
Loading
+32 −0
Original line number Diff line number Diff line
@@ -3093,6 +3093,36 @@ public final class Settings {
         */
        public static final String QUIET_HOURS_END = "quiet_hours_end";

        /**
         * Whether to remove the sound from phone ringing during quiet hours.
         * @hide
         */
        public static final String QUIET_HOURS_RINGER = "quiet_hours_ringer";

        /**
         * Constant: Keep ringer on for all numbers during quiet hours
         * @hide
         */
        public static final int QUIET_HOURS_RINGER_ALLOW_ALL = 0;

        /**
         * Constant: Only ring for numbers in contact list during quiet hours
         * @hide
         */
        public static final int QUIET_HOURS_RINGER_CONTACTS_ONLY = 1;

        /**
         * Constant: Only ring for favorite contacts during quiet hours
         * @hide
         */
        public static final int QUIET_HOURS_RINGER_FAVORITES_ONLY = 2;

        /**
         * Constant: Disable ringer during quiet hours
         * @hide
         */
        public static final int QUIET_HOURS_RINGER_DISABLED = 3;

        /**
         * Whether to remove the sound from outgoing notifications during quiet hours.
         * @hide
@@ -3495,7 +3525,9 @@ public final class Settings {
            QUIET_HOURS_ENABLED,
            QUIET_HOURS_START,
            QUIET_HOURS_END,
            QUIET_HOURS_RINGER,
            QUIET_HOURS_MUTE,
            QUIET_HOURS_HAPTIC,
            QUIET_HOURS_SYSTEM,
            QUIET_HOURS_STILL,
            QUIET_HOURS_DIM,