Merge "Fixing QS appearing when going from AOD to unlocked in split shade" into tm-qpr-dev

This commit is contained in:
Michał Brzeziński
2022-10-05 11:57:32 +00:00
committed by Android (Google) Code Review
2 changed files with 5 additions and 8 deletions

View File

@@ -425,8 +425,6 @@ public final class NotificationPanelViewController extends PanelViewController {
new KeyguardClockPositionAlgorithm.Result(); new KeyguardClockPositionAlgorithm.Result();
private boolean mIsExpanding; private boolean mIsExpanding;
private boolean mBlockTouches;
/** /**
* Determines if QS should be already expanded when expanding shade. * Determines if QS should be already expanded when expanding shade.
* Used for split shade, two finger gesture as well as accessibility shortcut to QS. * Used for split shade, two finger gesture as well as accessibility shortcut to QS.
@@ -1693,7 +1691,6 @@ public final class NotificationPanelViewController extends PanelViewController {
public void resetViews(boolean animate) { public void resetViews(boolean animate) {
mIsLaunchTransitionFinished = false; mIsLaunchTransitionFinished = false;
mBlockTouches = false;
mCentralSurfaces.getGutsManager().closeAndSaveGuts(true /* leavebehind */, true /* force */, mCentralSurfaces.getGutsManager().closeAndSaveGuts(true /* leavebehind */, true /* force */,
true /* controls */, -1 /* x */, -1 /* y */, true /* resetMenu */); true /* controls */, -1 /* x */, -1 /* y */, true /* resetMenu */);
if (animate && !isFullyCollapsed()) { if (animate && !isFullyCollapsed()) {
@@ -4198,7 +4195,7 @@ public final class NotificationPanelViewController extends PanelViewController {
"NPVC onInterceptTouchEvent (" + event.getId() + "): (" + event.getX() "NPVC onInterceptTouchEvent (" + event.getId() + "): (" + event.getX()
+ "," + event.getY() + ")"); + "," + event.getY() + ")");
} }
if (mBlockTouches || mQs.disallowPanelTouches()) { if (mQs.disallowPanelTouches()) {
return false; return false;
} }
initDownStates(event); initDownStates(event);
@@ -4241,8 +4238,7 @@ public final class NotificationPanelViewController extends PanelViewController {
} }
if (mBlockTouches || (mQsFullyExpanded && mQs != null if (mQsFullyExpanded && mQs != null && mQs.disallowPanelTouches()) {
&& mQs.disallowPanelTouches())) {
return false; return false;
} }

View File

@@ -4453,10 +4453,11 @@ public class CentralSurfacesImpl extends CoreStartable implements
Trace.beginSection("CentralSurfaces#updateDozing"); Trace.beginSection("CentralSurfaces#updateDozing");
mDozing = isDozing; mDozing = isDozing;
// Collapse the notification panel if open
boolean dozingAnimated = mDozeServiceHost.getDozingRequested() boolean dozingAnimated = mDozeServiceHost.getDozingRequested()
&& mDozeParameters.shouldControlScreenOff(); && mDozeParameters.shouldControlScreenOff();
mNotificationPanelViewController.resetViews(dozingAnimated); // resetting views is already done when going into doze, there's no need to
// reset them again when we're waking up
mNotificationPanelViewController.resetViews(dozingAnimated && isDozing);
updateQsExpansionEnabled(); updateQsExpansionEnabled();
mKeyguardViewMediator.setDozing(mDozing); mKeyguardViewMediator.setDozing(mDozing);