From bd28ceef10be1959f5e91282e4353a0442f961b9 Mon Sep 17 00:00:00 2001 From: Maurice Lam Date: Thu, 15 Oct 2015 14:06:24 -0700 Subject: [PATCH] Fix preferences v14 issues in lock screeen setup Preferences support-v14 expects a RecyclerView, and cannot override onCreateView to inflate custom views. This changes SetupChooseLockGeneric to use suw_template_no_scroll and let preference framework inflate its RecyclerView inside it. Bug: 24929660 Change-Id: Icda0fed37b68d4cffb49da46a241185f32d7e467 --- ..._lock_generic.xml => setup_preference.xml} | 7 +++--- res/values/themes.xml | 14 ++++++++--- .../settings/SetupChooseLockGeneric.java | 23 ++++++++----------- 3 files changed, 23 insertions(+), 21 deletions(-) rename res/layout/{setup_choose_lock_generic.xml => setup_preference.xml} (81%) diff --git a/res/layout/setup_choose_lock_generic.xml b/res/layout/setup_preference.xml similarity index 81% rename from res/layout/setup_choose_lock_generic.xml rename to res/layout/setup_preference.xml index 325844b92f6..135c5a099e5 100644 --- a/res/layout/setup_choose_lock_generic.xml +++ b/res/layout/setup_preference.xml @@ -15,12 +15,11 @@ limitations under the License. --> - + settings:suwIllustrationHorizontalTile="@drawable/setup_illustration_horizontal_tile" /> diff --git a/res/values/themes.xml b/res/values/themes.xml index 858c946d82f..0a265de6ab0 100644 --- a/res/values/themes.xml +++ b/res/values/themes.xml @@ -29,13 +29,12 @@ + + + +