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

Commit 276430cc authored by Robert Burns's avatar Robert Burns
Browse files

Rotary lockscreen

Tested on HDPI device, would like someone to test on MDPI/LDPI device

* Cleaned up formatting
Change-Id: I30d785877246aff49b9310396b092ba3cfb3d0ff
parent 42b7da86
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -2253,6 +2253,12 @@ public final class Settings {
         */
        public static final String LOCKSCREEN_MESSAGING_TAB_APP = "lockscreen_messaging_tab_app";

        /**
         * Sets the lockscreen style
         * @hide
         */
        public static final String LOCKSCREEN_STYLE_PREF = "lockscreen_style_pref";

        /**
         * Whether to use a custom pull-down notification screen
         * @hide
+2 −2
Original line number Diff line number Diff line
@@ -106,8 +106,8 @@ public class RotarySelector extends View {

    // Vibration (haptic feedback)
    private Vibrator mVibrator;
    private static final long VIBRATE_SHORT = 20;  // msec
    private static final long VIBRATE_LONG = 20;  // msec
    private static final long VIBRATE_SHORT = 30;  // msec
    private static final long VIBRATE_LONG = 40;  // msec

    /**
     * The drawable for the arrows need to be scrunched this many dips towards the rotary bg below
+9 −0
Original line number Diff line number Diff line
@@ -179,6 +179,15 @@
            android:layout_marginBottom="60dip"
            />

        <com.android.internal.widget.RotarySelector
            android:id="@+id/rotary_selector"
            android:orientation="horizontal"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_alignParentBottom="true"
            android:layout_marginBottom="60dip"
            />

        <!-- emergency call button shown when sim is PUKd and tab_selector is
             hidden -->
        <Button
+9 −0
Original line number Diff line number Diff line
@@ -228,6 +228,15 @@
        android:layout_marginRight="60dip"
        />

    <com.android.internal.widget.RotarySelector
        android:id="@+id/rotary_selector"
        android:orientation="vertical"
        android:layout_width="wrap_content"
        android:layout_height="match_parent"
        android:layout_alignParentRight="true"
        android:layout_marginRight="60dip"
        />

    <!-- emergency call button shown when sim is PUKd and tab_selector is
         hidden -->
    <Button