Merge "Remove behavior that closes the notification/qs panel when tapping on an empty area." into sc-v2-dev am: f4d5b80138 am: b2e09315ad

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16413131

Change-Id: Id5cf8abf421a22a4378d9f6dfa2ddfdc6c2e0713
This commit is contained in:
Christian Göllner
2021-12-09 19:01:31 +00:00
committed by Automerger Merge Worker
2 changed files with 0 additions and 14 deletions

View File

@@ -3419,12 +3419,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;
}

View File

@@ -933,7 +933,6 @@ public abstract class PanelViewController {
private void abortAnimations() {
cancelHeightAnimator();
mView.removeCallbacks(mPostCollapseRunnable);
mView.removeCallbacks(mFlingCollapseRunnable);
}
@@ -1110,13 +1109,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();