Merge "On device lockdown, always show the keyguard" into sc-v2-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
d978682f24
@@ -677,6 +677,13 @@ public class KeyguardViewMediator extends SystemUI implements Dumpable,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onStrongAuthStateChanged(int userId) {
|
||||||
|
if (mLockPatternUtils.isUserInLockdown(KeyguardUpdateMonitor.getCurrentUser())) {
|
||||||
|
doKeyguardLocked(null);
|
||||||
|
}
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
ViewMediatorCallback mViewMediatorCallback = new ViewMediatorCallback() {
|
ViewMediatorCallback mViewMediatorCallback = new ViewMediatorCallback() {
|
||||||
@@ -1535,7 +1542,8 @@ public class KeyguardViewMediator extends SystemUI implements Dumpable,
|
|||||||
}
|
}
|
||||||
|
|
||||||
// if another app is disabling us, don't show
|
// if another app is disabling us, don't show
|
||||||
if (!mExternallyEnabled) {
|
if (!mExternallyEnabled
|
||||||
|
&& !mLockPatternUtils.isUserInLockdown(KeyguardUpdateMonitor.getCurrentUser())) {
|
||||||
if (DEBUG) Log.d(TAG, "doKeyguard: not showing because externally disabled");
|
if (DEBUG) Log.d(TAG, "doKeyguard: not showing because externally disabled");
|
||||||
|
|
||||||
mNeedToReshowWhenReenabled = true;
|
mNeedToReshowWhenReenabled = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user