Merge "Can't switch navigation mode from search results" into qt-dev

This commit is contained in:
TreeHugger Robot
2019-05-02 16:55:53 +00:00
committed by Android (Google) Code Review
6 changed files with 6 additions and 21 deletions

View File

@@ -42,11 +42,6 @@ public class SystemNavigationEdgeToEdgePreferenceController extends
super(context, overlayManager, key);
}
@Override
public boolean isSliceable() {
return TextUtils.equals(PREF_KEY_EDGE_TO_EDGE, getPreferenceKey());
}
@Override
public void onRadioButtonClicked(RadioButtonPreference preference) {
setNavBarInteractionMode(mOverlayManager, NAV_BAR_MODE_GESTURAL_OVERLAY);

View File

@@ -42,11 +42,6 @@ public class SystemNavigationLegacyPreferenceController extends
super(context, overlayManager, key);
}
@Override
public boolean isSliceable() {
return TextUtils.equals(PREF_KEY_LEGACY, getPreferenceKey());
}
@Override
public void onRadioButtonClicked(RadioButtonPreference preference) {
setNavBarInteractionMode(mOverlayManager, NAV_BAR_MODE_3BUTTON_OVERLAY);

View File

@@ -42,11 +42,6 @@ public class SystemNavigationSwipeUpPreferenceController extends
super(context, overlayManager, key);
}
@Override
public boolean isSliceable() {
return TextUtils.equals(PREF_KEY_SWIPE_UP, getPreferenceKey());
}
@Override
public void onRadioButtonClicked(RadioButtonPreference preference) {
setNavBarInteractionMode(mOverlayManager, NAV_BAR_MODE_2BUTTON_OVERLAY);

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