summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Matt Pietal <mpietal@google.com> 2024-05-02 11:50:25 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2024-05-02 11:50:25 +0000
commitb0133d13b0938fe3029cc6deb810fa31aef5d7ba (patch)
tree8f644598a2a79c6ac9b5d744dc19e448d4d36451
parentc67cb4541abb53b5a6e269837f99d92f7cc8160f (diff)
parent93ad57bdd9642f8e7227f91a482f19371a790ffb (diff)
Merge "Remove overscroll on keyguard when swiping up then down" into main
-rw-r--r--packages/SystemUI/src/com/android/systemui/shade/NotificationPanelViewController.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/shade/NotificationPanelViewController.java b/packages/SystemUI/src/com/android/systemui/shade/NotificationPanelViewController.java
index 403bece4a7c6..4d4d17748ba7 100644
--- a/packages/SystemUI/src/com/android/systemui/shade/NotificationPanelViewController.java
+++ b/packages/SystemUI/src/com/android/systemui/shade/NotificationPanelViewController.java
@@ -3992,7 +3992,12 @@ public final class NotificationPanelViewController implements ShadeSurface, Dump
mExpandLatencyTracking = false;
}
float maxPanelHeight = getMaxPanelTransitionDistance();
- if (mHeightAnimator == null) {
+ if (mHeightAnimator == null && !MigrateClocksToBlueprint.isEnabled()) {
+ // MigrateClocksToBlueprint - There is an edge case where swiping up slightly,
+ // and then swiping down will trigger overscroll logic. Even without this flag
+ // enabled, the notifications can then run into UDFPS. At this point it is
+ // safer to remove overscroll for this one case to prevent overlap.
+
// Split shade has its own overscroll logic
if (isTracking()) {
float overExpansionPixels = Math.max(0, h - maxPanelHeight);