From 2d1ef3012c98c07877816f3587514cca98609550 Mon Sep 17 00:00:00 2001 From: Adrian Roos Date: Fri, 24 Oct 2014 18:42:51 +0200 Subject: [PATCH] Close keyguard user switcher on tap outside Also closes when tapping the current user. Also fixes a bug, where the background alpha was not properly initialized. And while we're at it, fixes a bug where the user switcher was closable in simple mode by extending quick settings. Bug: 17691134 Change-Id: I5444fe42a8a2887ab012ef6cbdcc57ba81a8c1c2 --- .../res/layout/keyguard_user_switcher.xml | 25 +++--- .../res/layout/status_bar_expanded.xml | 8 +- .../phone/NotificationPanelView.java | 2 +- .../policy/KeyguardUserSwitcher.java | 81 +++++++++++++++---- .../policy/KeyguardUserSwitcherScrim.java | 2 +- 5 files changed, 87 insertions(+), 31 deletions(-) diff --git a/packages/SystemUI/res/layout/keyguard_user_switcher.xml b/packages/SystemUI/res/layout/keyguard_user_switcher.xml index 3730bbe1ee566..773da9a324404 100644 --- a/packages/SystemUI/res/layout/keyguard_user_switcher.xml +++ b/packages/SystemUI/res/layout/keyguard_user_switcher.xml @@ -14,13 +14,18 @@ ~ See the License for the specific language governing permissions and ~ limitations under the License --> - - + + + + \ No newline at end of file diff --git a/packages/SystemUI/res/layout/status_bar_expanded.xml b/packages/SystemUI/res/layout/status_bar_expanded.xml index 96f9b91278d75..f6d4be54bfd29 100644 --- a/packages/SystemUI/res/layout/status_bar_expanded.xml +++ b/packages/SystemUI/res/layout/status_bar_expanded.xml @@ -101,11 +101,9 @@ + android:layout="@layout/keyguard_user_switcher" + android:layout_height="match_parent" + android:layout_width="match_parent" />