diff options
| author | 2016-06-27 13:55:15 -0700 | |
|---|---|---|
| committer | 2016-06-30 15:19:25 -0400 | |
| commit | f07f1700e234a106c011becc305a15f4dba7e38a (patch) | |
| tree | 8909f4d5b4e42a460cb035a99703f341ccab22e3 | |
| parent | 650cc68f10f7138d4e048dbd7b08162241388f8f (diff) | |
Quick settings icons have focus
To have focus in quick setting icons,
add focusable
Fixes: 29769508
Change-Id: I1b10203d60614a7b94274da046dac69a7ed5b80a
Signed-off-by: Sungyoung An <sungyong.an@lge.com>
Signed-off-by: Min Yun <min.yun@lge.com>
3 files changed, 4 insertions, 1 deletions
diff --git a/packages/SystemUI/res/layout/qs_user_detail_item.xml b/packages/SystemUI/res/layout/qs_user_detail_item.xml index 58fc0694c72c..8c6c7cfc8048 100644 --- a/packages/SystemUI/res/layout/qs_user_detail_item.xml +++ b/packages/SystemUI/res/layout/qs_user_detail_item.xml @@ -28,6 +28,7 @@ android:minHeight="112dp" android:clipChildren="false" android:clipToPadding="false" + android:focusable="true" android:background="@drawable/ripple_drawable" systemui:activatedFontFamily="sans-serif-medium"> @@ -65,4 +66,4 @@ android:visibility="gone" /> </LinearLayout> -</com.android.systemui.qs.tiles.UserDetailItemView>
\ No newline at end of file +</com.android.systemui.qs.tiles.UserDetailItemView> diff --git a/packages/SystemUI/res/layout/quick_status_bar_expanded_header.xml b/packages/SystemUI/res/layout/quick_status_bar_expanded_header.xml index 103e0b04e6e8..f201851aa4a7 100644 --- a/packages/SystemUI/res/layout/quick_status_bar_expanded_header.xml +++ b/packages/SystemUI/res/layout/quick_status_bar_expanded_header.xml @@ -44,6 +44,7 @@ android:layout_width="48dp" android:layout_height="48dp" android:layout_alignParentEnd="true" + android:focusable="true" android:background="@drawable/ripple_drawable" > <ImageView android:id="@+id/multi_user_avatar" android:layout_width="@dimen/multi_user_avatar_expanded_size" diff --git a/packages/SystemUI/src/com/android/systemui/qs/QSTileBaseView.java b/packages/SystemUI/src/com/android/systemui/qs/QSTileBaseView.java index feacaa02550b..5ed19efa4b44 100644 --- a/packages/SystemUI/src/com/android/systemui/qs/QSTileBaseView.java +++ b/packages/SystemUI/src/com/android/systemui/qs/QSTileBaseView.java @@ -63,6 +63,7 @@ public class QSTileBaseView extends LinearLayout { setClipChildren(false); setClipToPadding(false); mCollapsedView = collapsedView; + setFocusable(true); } private Drawable newTileBackground() { |