Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b0133d13 authored by Matt Pietal's avatar Matt Pietal Committed by Android (Google) Code Review
Browse files

Merge "Remove overscroll on keyguard when swiping up then down" into main

parents c67cb454 93ad57bd
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -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);