From 03c1cfd7e0861a4a662ee451bd35cbd2a26eb121 Mon Sep 17 00:00:00 2001 From: Lyn Han Date: Thu, 6 May 2021 11:49:36 -0500 Subject: [PATCH] Restore 1:1 relationship between swipe and shade expansion Fixes: 187340058 Test: manual Change-Id: I77192eaf20d765c0198485c28e5680aaf6a76618 --- .../systemui/statusbar/phone/PanelViewController.java | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelViewController.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelViewController.java index f9a644fe2def8..a3efcd2263461 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelViewController.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelViewController.java @@ -697,16 +697,6 @@ public abstract class PanelViewController { if (isNaN(h)) { Log.wtf(TAG, "ExpandedHeight set to NaN"); } - if (mAmbientState.isExpansionChanging() - && !mIsFlinging // Fling already uses interpolated height from end of swipe - && !mAmbientState.isOnKeyguard() - && !mAmbientState.isDozing() - && !mAmbientState.isPulsing()) { - final float fraction = h / mView.getHeight(); - final float interpolatedFraction = new PathInterpolator(0.2f, 0.8f, 0.8f, 1f) - .getInterpolation(fraction); - h = interpolatedFraction * mView.getHeight(); - } maybeOverScrollForShadeFlingOpen(h); if (mExpandLatencyTracking && h != 0f) { DejankUtils.postAfterTraversal(