diff options
| author | 2021-02-16 18:17:51 +0000 | |
|---|---|---|
| committer | 2021-02-16 18:17:51 +0000 | |
| commit | f6888b8de9328fc97f4d652c072e64bd3a7b993b (patch) | |
| tree | f737957312e278304d621592e0c2a3f4b65276a1 | |
| parent | 3e9b14127796d2e579a2c9711f3194cecad86cdf (diff) | |
| parent | 7266ea6d84ff562ad802258b89a138caf8cc6ac6 (diff) | |
Merge "Fixing "updateVerticalPanelPosition" method name" into sc-dev
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelViewController.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelViewController.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelViewController.java index 7027a3bc99de..1318c13d7c07 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelViewController.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelViewController.java @@ -2914,12 +2914,12 @@ public class NotificationPanelViewController extends PanelViewController { } /** - * Updates the vertical position of the panel so it is positioned closer to the touch + * Updates the horizontal position of the panel so it is positioned closer to the touch * responsible for opening the panel. * * @param x the x-coordinate the touch event */ - protected void updateVerticalPanelPosition(float x) { + protected void updateHorizontalPanelPosition(float x) { if (mNotificationStackScrollLayoutController.getWidth() * 1.75f > mView.getWidth()) { resetHorizontalPanelPosition(); return; @@ -3503,7 +3503,7 @@ public class NotificationPanelViewController extends PanelViewController { } if (event.getActionMasked() == MotionEvent.ACTION_DOWN && isFullyCollapsed()) { mMetricsLogger.count(COUNTER_PANEL_OPEN, 1); - updateVerticalPanelPosition(event.getX()); + updateHorizontalPanelPosition(event.getX()); handled = true; } handled |= super.onTouch(v, event); |