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

Commit 358654f3 authored by Danny Baumann's avatar Danny Baumann
Browse files

Don't start keyguard in an attempt to exit it.

exitKeyguardSecurely() will open the keyguard if it's currently disabled
by an app. As this is unwanted here (the user has either already
bypassed the keyguard or the keyguard isn't secure; otherwise he
couldn't click on a notification entry) and as the lockscreen already is
dismissed a few lines above, don't call exitKeyguardSecurely here.

Change-Id: I5582da350d8826e42f9edcd56845a59965865c8b
JIRA:CYAN-99
parent 2b6b9c93
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -995,10 +995,6 @@ public abstract class BaseStatusBar extends SystemUI implements
                    // the stack trace isn't very helpful here.  Just log the exception message.
                    Slog.w(TAG, "Sending contentIntent failed: " + e);
                }

                KeyguardManager kgm =
                    (KeyguardManager) mContext.getSystemService(Context.KEYGUARD_SERVICE);
                if (kgm != null) kgm.exitKeyguardSecurely(null);
            }

            try {