From 41fc4e8cb7713dcc20d8e4ac3de78dee973dc558 Mon Sep 17 00:00:00 2001 From: Salvador Martinez Date: Mon, 8 Aug 2016 11:06:37 -0700 Subject: [PATCH] Settings Focus prevented from moving to pref RecyclerView containing preferences for support tab and summary tab are no longer focusable so that focus is not taken by preferences when loaded. Bug: 30214948 Change-Id: I23e717c58b1104fd0d2f8d89b77715a7b1fbc922 (cherry picked from commit 0a9e62d3998a5bcb57c4d0390378a5cddcad5250) --- res/layout/dashboard.xml | 7 ++++--- res/layout/support_fragment.xml | 3 ++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/res/layout/dashboard.xml b/res/layout/dashboard.xml index ebf5204e636..f1bf2592c67 100644 --- a/res/layout/dashboard.xml +++ b/res/layout/dashboard.xml @@ -19,9 +19,10 @@ android:id="@+id/dashboard_container" android:layout_width="match_parent" android:layout_height="match_parent" + android:clipChildren="false" + android:clipToPadding="false" + android:focusable="false" android:paddingStart="@dimen/dashboard_padding_start" android:paddingEnd="@dimen/dashboard_padding_end" android:paddingTop="@dimen/dashboard_padding_top" - android:paddingBottom="@dimen/dashboard_padding_bottom" - android:clipChildren="false" - android:clipToPadding="false" /> + android:paddingBottom="@dimen/dashboard_padding_bottom"/> diff --git a/res/layout/support_fragment.xml b/res/layout/support_fragment.xml index 481a5487bc2..10b941817c5 100644 --- a/res/layout/support_fragment.xml +++ b/res/layout/support_fragment.xml @@ -19,4 +19,5 @@ xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/support_items" android:layout_width="match_parent" - android:layout_height="match_parent"/> \ No newline at end of file + android:layout_height="match_parent" + android:focusable="false" /> \ No newline at end of file