From cb2f88ba4b957e48ce98214f1b38a7e2546800f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Go=CC=88llner?= Date: Wed, 8 Dec 2021 11:57:27 +0000 Subject: [PATCH] Remove behavior that closes the notification/qs panel when tapping on an empty area. Test: Manually on device Bug: 202900378 Fixes: 202900378 Change-Id: I0ea9393175af24bf60526b4b5e7d08b893c9ffa1 --- .../statusbar/phone/NotificationPanelViewController.java | 6 ------ .../systemui/statusbar/phone/PanelViewController.java | 8 -------- 2 files changed, 14 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 261b5dbac3d13..5eb35ac74732b 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelViewController.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelViewController.java @@ -3262,12 +3262,6 @@ public class NotificationPanelViewController extends PanelViewController { mStatusBarStateController.setState(KEYGUARD); } return true; - case StatusBarState.SHADE: - - // This gets called in the middle of the touch handling, where the state is still - // that we are tracking the panel. Collapse the panel after this is done. - mView.post(mPostCollapseRunnable); - return false; default: return true; } 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 2823d985102f7..2bf16fc9e52cd 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelViewController.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelViewController.java @@ -928,7 +928,6 @@ public abstract class PanelViewController { private void abortAnimations() { cancelHeightAnimator(); - mView.removeCallbacks(mPostCollapseRunnable); mView.removeCallbacks(mFlingCollapseRunnable); } @@ -1105,13 +1104,6 @@ public abstract class PanelViewController { return onMiddleClicked(); } - protected final Runnable mPostCollapseRunnable = new Runnable() { - @Override - public void run() { - collapse(false /* delayed */, 1.0f /* speedUpFactor */); - } - }; - protected abstract boolean onMiddleClicked(); protected abstract boolean isDozing();