Merge "Disable 3-Button NavBar Recents key when launch secure camera" into udc-dev am: d41919d2ab
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/22700065 Change-Id: Ief309130753875ea0728060f85c2fe4efd57c7e3 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -1501,13 +1501,17 @@ public class KeyguardViewMediator implements CoreStartable, Dumpable,
|
|||||||
notifyFinishedGoingToSleep();
|
notifyFinishedGoingToSleep();
|
||||||
|
|
||||||
if (cameraGestureTriggered) {
|
if (cameraGestureTriggered) {
|
||||||
|
|
||||||
// Just to make sure, make sure the device is awake.
|
// Just to make sure, make sure the device is awake.
|
||||||
mContext.getSystemService(PowerManager.class).wakeUp(SystemClock.uptimeMillis(),
|
mContext.getSystemService(PowerManager.class).wakeUp(SystemClock.uptimeMillis(),
|
||||||
PowerManager.WAKE_REASON_CAMERA_LAUNCH,
|
PowerManager.WAKE_REASON_CAMERA_LAUNCH,
|
||||||
"com.android.systemui:CAMERA_GESTURE_PREVENT_LOCK");
|
"com.android.systemui:CAMERA_GESTURE_PREVENT_LOCK");
|
||||||
setPendingLock(false);
|
setPendingLock(false);
|
||||||
mPendingReset = false;
|
mPendingReset = false;
|
||||||
|
mPowerGestureIntercepted = true;
|
||||||
|
if (DEBUG) {
|
||||||
|
Log.d(TAG, "cameraGestureTriggered=" + cameraGestureTriggered
|
||||||
|
+ ",mPowerGestureIntercepted=" + mPowerGestureIntercepted);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mPendingReset) {
|
if (mPendingReset) {
|
||||||
@@ -1706,7 +1710,13 @@ public class KeyguardViewMediator implements CoreStartable, Dumpable,
|
|||||||
mAnimatingScreenOff = false;
|
mAnimatingScreenOff = false;
|
||||||
cancelDoKeyguardLaterLocked();
|
cancelDoKeyguardLaterLocked();
|
||||||
cancelDoKeyguardForChildProfilesLocked();
|
cancelDoKeyguardForChildProfilesLocked();
|
||||||
if (DEBUG) Log.d(TAG, "onStartedWakingUp, seq = " + mDelayedShowingSequence);
|
if (cameraGestureTriggered) {
|
||||||
|
mPowerGestureIntercepted = true;
|
||||||
|
}
|
||||||
|
if (DEBUG) {
|
||||||
|
Log.d(TAG, "onStartedWakingUp, seq = " + mDelayedShowingSequence
|
||||||
|
+ ", mPowerGestureIntercepted = " + mPowerGestureIntercepted);
|
||||||
|
}
|
||||||
notifyStartedWakingUp();
|
notifyStartedWakingUp();
|
||||||
}
|
}
|
||||||
mUiEventLogger.logWithInstanceIdAndPosition(
|
mUiEventLogger.logWithInstanceIdAndPosition(
|
||||||
@@ -1933,12 +1943,19 @@ public class KeyguardViewMediator implements CoreStartable, Dumpable,
|
|||||||
startKeyguardExitAnimation(0, 0);
|
startKeyguardExitAnimation(0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
mPowerGestureIntercepted = mUpdateMonitor.isSecureCameraLaunchedOverKeyguard();
|
||||||
|
|
||||||
if (mOccluded != isOccluded) {
|
if (mOccluded != isOccluded) {
|
||||||
mOccluded = isOccluded;
|
mOccluded = isOccluded;
|
||||||
mKeyguardViewControllerLazy.get().setOccluded(isOccluded, animate
|
mKeyguardViewControllerLazy.get().setOccluded(isOccluded, animate
|
||||||
&& mDeviceInteractive);
|
&& mDeviceInteractive);
|
||||||
adjustStatusBarLocked();
|
adjustStatusBarLocked();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (DEBUG) {
|
||||||
|
Log.d(TAG, "isOccluded=" + isOccluded + ",mPowerGestureIntercepted="
|
||||||
|
+ mPowerGestureIntercepted);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Trace.endSection();
|
Trace.endSection();
|
||||||
}
|
}
|
||||||
@@ -3056,6 +3073,10 @@ public class KeyguardViewMediator implements CoreStartable, Dumpable,
|
|||||||
flags |= StatusBarManager.DISABLE_RECENT;
|
flags |= StatusBarManager.DISABLE_RECENT;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (mPowerGestureIntercepted) {
|
||||||
|
flags |= StatusBarManager.DISABLE_RECENT;
|
||||||
|
}
|
||||||
|
|
||||||
if (DEBUG) {
|
if (DEBUG) {
|
||||||
Log.d(TAG, "adjustStatusBarLocked: mShowing=" + mShowing + " mOccluded=" + mOccluded
|
Log.d(TAG, "adjustStatusBarLocked: mShowing=" + mShowing + " mOccluded=" + mOccluded
|
||||||
+ " isSecure=" + isSecure() + " force=" + forceHideHomeRecentsButtons
|
+ " isSecure=" + isSecure() + " force=" + forceHideHomeRecentsButtons
|
||||||
|
|||||||
Reference in New Issue
Block a user