Pass last touch event to DragDownHelper when starting doze

This stops QS container being stuck in a bad state if it was
being opened over keyguard when dozing started.

Bug: 279707140
Test: manually verified QQS over keyguard to doze transition
Change-Id: Ic8b02151ff5e497993bc9d74fd0db9f9bfe2f8df
This commit is contained in:
Shawn Lee
2023-05-16 11:28:22 -07:00
parent d7ce147903
commit e651a3a081

View File

@@ -397,19 +397,15 @@ public class NotificationShadeWindowViewController {
return true;
}
if (handled) {
return true;
}
if (mMultiShadeMotionEventInteractor != null) {
// This interactor is not null only if the dual shade feature is enabled.
return mMultiShadeMotionEventInteractor.onTouchEvent(ev, mView.getWidth());
} else if (mDragDownHelper.isDragDownEnabled()
|| mDragDownHelper.isDraggingDown()) {
// we still want to finish our drag down gesture when locking the screen
return mDragDownHelper.onTouchEvent(ev);
return mDragDownHelper.onTouchEvent(ev) || handled;
} else {
return false;
return handled;
}
}