Can't switch navigation mode from search results

3 Navigation modes are mutually exclusive, we can't set all often
them on. Therefore we will now show them as slices.

Fixes: 131713601
Test: robolectric, manual
Change-Id: I52e94dffe15ed20a23a5e4cea68a40b66158b3dd
This commit is contained in:
Raff Tsai
2019-05-02 14:34:45 +08:00
parent 0dde3a3b34
commit 8f205a66c0
6 changed files with 6 additions and 21 deletions

View File

@@ -180,8 +180,8 @@ public class SystemNavigationEdgeToEdgePreferenceControllerTest {
}
@Test
public void isSliceableCorrectKey_returnsTrue() {
assertThat(mController.isSliceable()).isTrue();
public void isSliceable_returnsFalse() {
assertThat(mController.isSliceable()).isFalse();
}
@Test

View File

@@ -182,8 +182,8 @@ public class SystemNavigationLegacyPreferenceControllerTest {
}
@Test
public void isSliceableCorrectKey_returnsTrue() {
assertThat(mController.isSliceable()).isTrue();
public void isSliceable_returnsFalse() {
assertThat(mController.isSliceable()).isFalse();
}
@Test

View File

@@ -180,8 +180,8 @@ public class SystemNavigationSwipeUpPreferenceControllerTest {
}
@Test
public void isSliceableCorrectKey_returnsTrue() {
assertThat(mController.isSliceable()).isTrue();
public void isSliceable_returnsFalse() {
assertThat(mController.isSliceable()).isFalse();
}
@Test