OSDN Git Service

Adjust UX for toggles when active scorer is not set.
authorStephen Chen <stewchen@google.com>
Fri, 23 Jun 2017 22:14:14 +0000 (15:14 -0700)
committerStephen Chen <stewchen@google.com>
Wed, 5 Jul 2017 19:29:06 +0000 (12:29 -0700)
commit7e27006a7bc8162b535aecb69cf2e5872bb19d77
tree8e22fc1a1f71ac8cb87196ba57cbe109d0dcd350
parentf0398e129459507d87b3abe52acecaf6cbdcbc99
Adjust UX for toggles when active scorer is not set.

This change fixes two issues: when wakeup is not available, update the
number of items to show above the fold in wifi preferences. When scorer
is not set, grey out wakeup toggle and set summary to reflect the
status.

Bug: 62410973
Bug: 62343859
Test: make RunSettingsRoboTests -j40

Change-Id: I5f4131c6a86eab6c0fb03ea2b5101ba107a9189f
res/values/strings.xml
src/com/android/settings/wifi/ConfigureWifiSettings.java
src/com/android/settings/wifi/UseOpenWifiPreferenceController.java
src/com/android/settings/wifi/WifiWakeupPreferenceController.java
tests/robotests/src/com/android/settings/wifi/UseOpenWifiPreferenceControllerTest.java
tests/robotests/src/com/android/settings/wifi/WifiWakeupPreferenceControllerTest.java