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

Commit db1a0173 authored by Uma Maheshwari Bhiram's avatar Uma Maheshwari Bhiram
Browse files

Fix null pointer exception in PhoneWindowManager

mKeyguardDelegate is null and is causing fatal exception

Change-Id: Iae14b969b7ff9ab0003e615f2f82eaac65a77985
parent 52b6961f
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -5073,7 +5073,8 @@ public class PhoneWindowManager implements WindowManagerPolicy {
        }
        final boolean hapticsDisabled = Settings.System.getIntForUser(mContext.getContentResolver(),
                Settings.System.HAPTIC_FEEDBACK_ENABLED, 0, UserHandle.USER_CURRENT) == 0;
        if (!always && (hapticsDisabled || mKeyguardDelegate.isShowingAndNotHidden())) {
        if (!always && (hapticsDisabled || (mKeyguardDelegate != null
                && mKeyguardDelegate.isShowingAndNotHidden()))) {
            return false;
        }
        long[] pattern = null;