OSDN Git Service

Make StatusBarWindowController aware of assist session in progress.
authorMatt Casey <mrcasey@google.com>
Wed, 24 Apr 2019 18:31:45 +0000 (14:31 -0400)
committerMatt Casey <mrcasey@google.com>
Wed, 24 Apr 2019 20:31:49 +0000 (16:31 -0400)
commit87610b4e1dca201936d09a4481d9d648c538f26b
treecadf67f1bd999a8c84ba33309f5ffe49629cd13d
parentd86369ae3e7791983f2433e1d5704faec245706c
Make StatusBarWindowController aware of assist session in progress.

Separate "assist is rendering something" from "assist session is in
progress". If an assist session is in progress, the status bar should be
focusable and back gestures should cause the session to be canceled.

This also intercepts touches outside of the status bar when a session is
in progress, but those touches will cancel (separate CL), so this
shouldn't be a problem.

Bug: 123413054
Test: Ensure in-progress assist sesion is canceled on back, ensure back
is not affected outside of a session.

Change-Id: Ife24b58a7851c5865ff75e66e00e32ae3293a0e8
packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarWindowController.java