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

Commit 9a8df5bc authored by Danesh M's avatar Danesh M Committed by Gerrit Code Review
Browse files

Implement left swipe on lockscreen

Allows user to left swipe to live lockscreen and back.

Change-Id: Ia94d735695b77a091a240e13858641cf95ac0647
parent 16a065df
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -287,4 +287,6 @@ interface IWindowManager
     * @return The frame statistics or null if the window does not exist.
     */
    WindowContentFrameStats getWindowContentFrameStats(IBinder token);

    void setLiveLockscreenEdgeDetector(boolean enable);
}
+2 −0
Original line number Diff line number Diff line
@@ -1320,4 +1320,6 @@ public interface WindowManagerPolicy {
     * @param fadeoutDuration the duration of the exit animation, in milliseconds
     */
    public void startKeyguardExitAnimation(long startTime, long fadeoutDuration);

    public void setLiveLockscreenEdgeDetector(boolean enable);
}
+1 −0
Original line number Diff line number Diff line
@@ -94,4 +94,5 @@ oneway interface IKeyguardService {
     * to start the keyguard dismiss sequence.
     */
    void onActivityDrawn();
    void showKeyguard();
}
+8 −0
Original line number Diff line number Diff line
@@ -19,6 +19,7 @@ import android.app.Activity;
import android.app.AlertDialog;
import android.app.admin.DevicePolicyManager;
import android.content.Context;
import android.os.RemoteException;
import android.os.UserHandle;
import android.util.AttributeSet;
import android.util.Log;
@@ -26,6 +27,7 @@ import android.util.Slog;
import android.view.LayoutInflater;
import android.view.View;
import android.view.WindowManager;
import android.view.WindowManagerGlobal;
import android.widget.FrameLayout;

import com.android.internal.widget.LockPatternUtils;
@@ -353,6 +355,12 @@ public class KeyguardSecurityContainer extends FrameLayout implements KeyguardSe
            }
        }
        if (finish) {
            try {
                WindowManagerGlobal.getWindowManagerService()
                        .setLiveLockscreenEdgeDetector(false);
            } catch (RemoteException e){
                Log.e(TAG, e.getMessage());
            }
            mSecurityCallback.finish(strongAuth);
        }
        return finish;
+3 −2
Original line number Diff line number Diff line
@@ -19,9 +19,10 @@
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui"
    android:id="@+id/keyguard_bottom_area"
    android:layout_height="match_parent"
    android:layout_height="wrap_content"
    android:layout_width="match_parent"
    android:outlineProvider="none"
    android:visibility="gone"
    android:elevation="5dp" > <!-- Put it above the status bar header -->

    <com.android.systemui.statusbar.phone.KeyguardIndicationTextView
@@ -39,7 +40,7 @@
    <FrameLayout
        android:id="@+id/preview_container"
        android:layout_width="match_parent"
        android:layout_height="match_parent">
        android:layout_height="wrap_content">
    </FrameLayout>

    <com.android.systemui.statusbar.KeyguardAffordanceView
Loading