summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI/res/layout
diff options
context:
space:
mode:
authorAdrian Roos <roosa@google.com>2014-10-24 18:42:51 +0200
committerAdrian Roos <roosa@google.com>2014-10-28 17:46:03 +0100
commit2d1ef3012c98c07877816f3587514cca98609550 (patch)
tree6d2d12f3806d2c58dd48cdcef25533cdcaab7e15 /packages/SystemUI/res/layout
parent5b820a8aa1a200824e44aede6bc1e381a6d69dd5 (diff)
downloadframeworks_base-2d1ef3012c98c07877816f3587514cca98609550.zip
frameworks_base-2d1ef3012c98c07877816f3587514cca98609550.tar.gz
frameworks_base-2d1ef3012c98c07877816f3587514cca98609550.tar.bz2
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
Diffstat (limited to 'packages/SystemUI/res/layout')
-rw-r--r--packages/SystemUI/res/layout/keyguard_user_switcher.xml25
-rw-r--r--packages/SystemUI/res/layout/status_bar_expanded.xml8
2 files changed, 18 insertions, 15 deletions
diff --git a/packages/SystemUI/res/layout/keyguard_user_switcher.xml b/packages/SystemUI/res/layout/keyguard_user_switcher.xml
index 3730bbe..773da9a 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
-->
-<com.android.keyguard.AlphaOptimizedLinearLayout
- xmlns:android="http://schemas.android.com/apk/res/android"
- android:id="@+id/keyguard_user_switcher"
- android:orientation="vertical"
- android:layout_height="wrap_content"
- android:layout_width="wrap_content"
- android:gravity="end"
- android:visibility="gone"
- android:paddingTop="4dp">
-</com.android.keyguard.AlphaOptimizedLinearLayout>
+<view xmlns:android="http://schemas.android.com/apk/res/android"
+ class="com.android.systemui.statusbar.policy.KeyguardUserSwitcher$Container"
+ android:layout_height="match_parent"
+ android:layout_width="match_parent">
+ <com.android.keyguard.AlphaOptimizedLinearLayout
+ android:id="@+id/keyguard_user_switcher_inner"
+ android:orientation="vertical"
+ android:layout_height="wrap_content"
+ android:layout_width="wrap_content"
+ android:layout_marginTop="@dimen/status_bar_header_height_keyguard"
+ android:layout_gravity="end"
+ android:gravity="end"
+ android:paddingTop="4dp">
+ </com.android.keyguard.AlphaOptimizedLinearLayout>
+</view> \ 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 96f9b91..f6d4be5 100644
--- a/packages/SystemUI/res/layout/status_bar_expanded.xml
+++ b/packages/SystemUI/res/layout/status_bar_expanded.xml
@@ -101,11 +101,9 @@
<ViewStub
android:id="@+id/keyguard_user_switcher"
- android:layout_height="wrap_content"
- android:layout_width="wrap_content"
- android:layout_marginTop="@dimen/status_bar_header_height_keyguard"
- android:layout_gravity="end"
- android:layout="@layout/keyguard_user_switcher" />
+ android:layout="@layout/keyguard_user_switcher"
+ android:layout_height="match_parent"
+ android:layout_width="match_parent" />
<include
layout="@layout/keyguard_status_bar"