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

Commit 39e0257a authored by myfluxi's avatar myfluxi
Browse files

Revert "Bypass the lockscreen when the hardware keyboard is slid out and security mode is 'none'"

This causes issues, documented in CYAN-5567.

This reverts commit c1220445.

Change-Id: Ic9478eadbfa830e869007dad17983bd33c0ac6d6
parent 8808d97f
Loading
Loading
Loading
Loading
+0 −9
Original line number Diff line number Diff line
@@ -61,7 +61,6 @@ import android.view.MotionEvent;
import android.view.View;
import android.view.ViewStub;
import android.view.WindowManager;
import android.view.WindowManagerPolicy;
import android.widget.RemoteViews.OnClickHandler;

import java.io.File;
@@ -320,14 +319,6 @@ public class KeyguardHostView extends KeyguardViewBase {
                }
            }
        }
        @Override
        public void onLidStateChanged(int newState){
            //when lid goes open and no security is set -> unlock device
            if(newState == WindowManagerPolicy.WindowManagerFuncs.LID_OPEN
                && mCurrentSecuritySelection == SecurityMode.None){
                dismiss();
            }
        }
    };

    private static final boolean isMusicPlaying(int playbackState) {