summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Shawn Lee <syeonlee@google.com> 2023-03-16 00:08:01 +0000
committer Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> 2023-03-16 00:08:01 +0000
commit4002108d9bb9a756d032d6c2d1fdb652c66db802 (patch)
tree6f71f856b72a73e764ad3c6b16c0c1ad78a5e5d2
parent18ef8977d034a8cc711c43b5bb2ec465e5aaace1 (diff)
parent902540032ccdef869240cdb4bbe0fe6f67d2c95c (diff)
Merge "Revert "Prevent flings after motion gestures on fully expanded keyguard"" into tm-qpr-dev am: 902540032c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/22101924 Change-Id: I369949af3706c04332f0822dc068992431620069 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-rw-r--r--packages/SystemUI/src/com/android/systemui/shade/NotificationPanelViewController.java11
1 files changed, 4 insertions, 7 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/shade/NotificationPanelViewController.java b/packages/SystemUI/src/com/android/systemui/shade/NotificationPanelViewController.java
index fdaeeee26812..6b2d7443392d 100644
--- a/packages/SystemUI/src/com/android/systemui/shade/NotificationPanelViewController.java
+++ b/packages/SystemUI/src/com/android/systemui/shade/NotificationPanelViewController.java
@@ -3508,15 +3508,12 @@ public final class NotificationPanelViewController implements Dumpable {
}
private void endMotionEvent(MotionEvent event, float x, float y, boolean forceCancel) {
- // don't fling while in keyguard to avoid jump in shade expand animation
- boolean fullyExpandedInKeyguard = mBarState == KEYGUARD && mExpandedFraction >= 1.0;
mTrackingPointer = -1;
mAmbientState.setSwipingUp(false);
- if (!fullyExpandedInKeyguard && ((mTracking && mTouchSlopExceeded)
- || Math.abs(x - mInitialExpandX) > mTouchSlop
+ if ((mTracking && mTouchSlopExceeded) || Math.abs(x - mInitialExpandX) > mTouchSlop
|| Math.abs(y - mInitialExpandY) > mTouchSlop
|| (!isFullyExpanded() && !isFullyCollapsed())
- || event.getActionMasked() == MotionEvent.ACTION_CANCEL || forceCancel)) {
+ || event.getActionMasked() == MotionEvent.ACTION_CANCEL || forceCancel) {
mVelocityTracker.computeCurrentVelocity(1000);
float vel = mVelocityTracker.getYVelocity();
float vectorVel = (float) Math.hypot(
@@ -3564,9 +3561,9 @@ public final class NotificationPanelViewController implements Dumpable {
if (mUpdateFlingOnLayout) {
mUpdateFlingVelocity = vel;
}
- } else if (fullyExpandedInKeyguard || (!mCentralSurfaces.isBouncerShowing()
+ } else if (!mCentralSurfaces.isBouncerShowing()
&& !mAlternateBouncerInteractor.isVisibleState()
- && !mKeyguardStateController.isKeyguardGoingAway())) {
+ && !mKeyguardStateController.isKeyguardGoingAway()) {
onEmptySpaceClick();
onTrackingStopped(true);
}