Merge "Remove behavior that closes the notification/qs panel when tapping on an empty area." into sc-v2-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
f4d5b80138
@@ -3262,12 +3262,6 @@ public class NotificationPanelViewController extends PanelViewController {
|
|||||||
mStatusBarStateController.setState(KEYGUARD);
|
mStatusBarStateController.setState(KEYGUARD);
|
||||||
}
|
}
|
||||||
return true;
|
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:
|
default:
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -928,7 +928,6 @@ public abstract class PanelViewController {
|
|||||||
|
|
||||||
private void abortAnimations() {
|
private void abortAnimations() {
|
||||||
cancelHeightAnimator();
|
cancelHeightAnimator();
|
||||||
mView.removeCallbacks(mPostCollapseRunnable);
|
|
||||||
mView.removeCallbacks(mFlingCollapseRunnable);
|
mView.removeCallbacks(mFlingCollapseRunnable);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1105,13 +1104,6 @@ public abstract class PanelViewController {
|
|||||||
return onMiddleClicked();
|
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 onMiddleClicked();
|
||||||
|
|
||||||
protected abstract boolean isDozing();
|
protected abstract boolean isDozing();
|
||||||
|
|||||||
Reference in New Issue
Block a user