From 446f6dd886124f3df21f33cd74124b8b1ed48a24 Mon Sep 17 00:00:00 2001 From: Stanley Wang Date: Tue, 21 Dec 2021 17:25:38 +0800 Subject: [PATCH] Restore the style of the screen saver widget from switch style to button style. The operation of the Switch is not suitable for previewing the screen saver and will make the user confused. So we change the style of the screen saver widget back to the button style. Fix: 189505023 Test: manually test the screen saver Change-Id: I4a97d91cc0b76111d4cb7b6aa202f2207ee0ca5d --- res/layout/dream_start_button.xml | 36 +++++++++++++++++ res/values/strings.xml | 4 +- res/xml/dream_fragment_overview.xml | 13 +++--- .../dream/StartNowPreferenceController.java | 40 +++++++++---------- .../StartNowPreferenceControllerTest.java | 32 +++++++-------- 5 files changed, 78 insertions(+), 47 deletions(-) create mode 100644 res/layout/dream_start_button.xml diff --git a/res/layout/dream_start_button.xml b/res/layout/dream_start_button.xml new file mode 100644 index 00000000000..17ba78dbb7a --- /dev/null +++ b/res/layout/dream_start_button.xml @@ -0,0 +1,36 @@ + + + + + +