Merge "Status bar interaction veto revoked on ups/cancels." into klp-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
43c70b0ccf
@@ -1737,8 +1737,15 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (mStatusBarWindowState == WINDOW_STATE_SHOWING) {
|
if (mStatusBarWindowState == WINDOW_STATE_SHOWING) {
|
||||||
|
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);
|
setInteracting(StatusBarManager.WINDOW_STATUS_BAR, true);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user