Fix unexpected grey-out in Screen attention

Fix preference controller searchable issue.

Bug: 132821023
Bug: 133255690
Test: atest AdaptiveSleepPreferenceControllerTest
Change-Id: I686ed827fbe572c9d8bcde2d8a8e00f2dcb5a6a8
This commit is contained in:
Yi Jiang
2019-05-16 13:21:35 -07:00
parent b9cb4ab062
commit 6da0447068
5 changed files with 130 additions and 15 deletions

View File

@@ -133,10 +133,10 @@ public class AdaptiveSleepPreferenceControllerTest {
}
@Test
public void isSliceable_returnsTrue() {
public void isSliceable_returnsFalse() {
final AdaptiveSleepPreferenceController controller =
new AdaptiveSleepPreferenceController(mContext, "any_key");
assertThat(controller.isSliceable()).isTrue();
assertThat(controller.isSliceable()).isFalse();
}
@Test