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

Commit 17a259fd authored by Valera Trubachev's avatar Valera Trubachev
Browse files

lockscreen: new Ring style (1/3)

Introduces a new Ring style - 2 rings on left/right to unlock/silence.
1 ring in the middle to launch up to 4 custom apps.
Rings can be dragged anywhere on lockscreen - not just in one direction.
Unlock/silence rings are triggered by dragging the ring far enough away from its neutral position.
Custom apps are triggered by releasing the middle ring while over the app icon.

Demo video: http://www.youtube.com/watch?v=VnQzT9QyJFQ

EDIT: Now hides album art if custom apps ring is enabled.
EDIT 2: Better layout of custom app rings for 1-3 custom apps,
        New bubbly drawables by Prash!
EDIT 3: Screen stays on while dragging rings

Change-Id: I6cf3b61e7478731e876b14f9e5bd32eaaf3edf12
parent b44a0d6e
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -2497,6 +2497,17 @@ public final class Settings {
         */
        public static final String LOCKSCREEN_CUSTOM_APP_ACTIVITY = "lockscreen_custom_app_activity";

        /**
         * Ring Apps to launch with ring style and custom app toggle enabled
         * @hide
         */
        public static final String[] LOCKSCREEN_CUSTOM_RING_APP_ACTIVITIES = new String[] {
            "lockscreen_custom_app_activity_1",
            "lockscreen_custom_app_activity_2",
            "lockscreen_custom_app_activity_3",
            "lockscreen_custom_app_activity_4"
        };

        /**
         * 1: Show custom app icon (currently cm logo) as with new patch
         * 2: Show messaging app icon as in old lockscreen
+1164 −0

File added.

Preview size limit exceeded, changes collapsed.

+10.9 KiB
Loading image diff...
+8.02 KiB
Loading image diff...
+13.5 KiB
Loading image diff...
Loading