Status bar interaction veto revoked on ups/cancels.
If we get an ACTION_UP or ACTION_CANCEL and the shade is not expanded, treat this as a signal of !interacting, revoking the interaction veto. Bug:10711758 Change-Id: Ia69ff24880193fa8d99ece79053eeb95dfa9ba71
This commit is contained in:
@@ -1737,7 +1737,14 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode {
|
||||
}
|
||||
|
||||
if (mStatusBarWindowState == WINDOW_STATE_SHOWING) {
|
||||
setInteracting(StatusBarManager.WINDOW_STATUS_BAR, true);
|
||||
final boolean upOrCancel =
|
||||
event.getAction() == MotionEvent.ACTION_UP ||
|
||||
event.getAction() == MotionEvent.ACTION_CANCEL;
|
||||
if (upOrCancel && !mExpandedVisible) {
|
||||
setInteracting(StatusBarManager.WINDOW_STATUS_BAR, false);
|
||||
} else {
|
||||
setInteracting(StatusBarManager.WINDOW_STATUS_BAR, true);
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user