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

Commit a5b02113 authored by Wysie's avatar Wysie Committed by Chris Soyars
Browse files

Added code to allow changing of custom message's colour.

parent f66c4fea
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -2923,6 +2923,18 @@ public final class Settings {
         */
        public static final String LOCK_CUSTOM_MSG = "lock_screen_custom_msg";

        /**
         * LOCK_CUSTOM_MSG_COLOR
         * @hide
         */
        public static final String CUSTOM_MSG_COLOR = "lock_screen_custom_msg_color";

        /**
         * LOCK_CUSTOM_MSG_COLOR
         * @hide
         */
        public static final String CUSTOM_MSG_COLOR = "lock_screen_custom_msg_color";

        /**
         * Whether assisted GPS should be enabled or not.
         * @hide
+25 −17
Original line number Diff line number Diff line
@@ -605,6 +605,14 @@ public class LockPatternUtils {
        return getString(Settings.Secure.LOCK_CUSTOM_MSG);
    }

    public void setCustomMsgColor(int color) {
        setInt(Settings.Secure.CUSTOM_MSG_COLOR, color);
    }

    public int getCustomMsgColor() {
        return getInt(Settings.Secure.CUSTOM_MSG_COLOR, -1);
    }

    public int getIncorrectDelay() {
        return getInt(Settings.Secure.LOCK_INCORRECT_DELAY, 2000);
    }