Fix error in PowerMenuSettingsControllerTest am: 512419a454
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/14051305 Change-Id: Ia622ce34c84dd82b82558424055eb52438bc7487
This commit is contained in:
@@ -153,7 +153,7 @@ public class PowerMenuPreferenceControllerTest {
|
|||||||
mShadowPackageManager.setSystemFeature(CONTROLS_FEATURE, false);
|
mShadowPackageManager.setSystemFeature(CONTROLS_FEATURE, false);
|
||||||
when(mResources.getBoolean(
|
when(mResources.getBoolean(
|
||||||
com.android.internal.R.bool.config_longPressOnPowerForAssistantSettingAvailable))
|
com.android.internal.R.bool.config_longPressOnPowerForAssistantSettingAvailable))
|
||||||
.thenReturn(true);
|
.thenReturn(false);
|
||||||
|
|
||||||
assertThat(mController.getAvailabilityStatus()).isEqualTo(
|
assertThat(mController.getAvailabilityStatus()).isEqualTo(
|
||||||
BasePreferenceController.CONDITIONALLY_UNAVAILABLE);
|
BasePreferenceController.CONDITIONALLY_UNAVAILABLE);
|
||||||
|
|||||||
Reference in New Issue
Block a user