Merge "Disable recent only when face enrolled and secure applications launched" into udc-qpr-dev

This commit is contained in:
Bill Lin
2023-08-02 00:27:56 +00:00
committed by Android (Google) Code Review

View File

@@ -3285,7 +3285,8 @@ public class KeyguardViewMediator implements CoreStartable, Dumpable,
flags |= StatusBarManager.DISABLE_RECENT;
}
if (mPowerGestureIntercepted && mOccluded && isSecure()) {
if (mPowerGestureIntercepted && mOccluded && isSecure()
&& mUpdateMonitor.isFaceEnrolled()) {
flags |= StatusBarManager.DISABLE_RECENT;
}