Loading packages/SystemUI/shared/src/com/android/systemui/shared/rotation/RotationButtonController.java +1 −2 Original line number Diff line number Diff line Loading @@ -497,8 +497,7 @@ public class RotationButtonController { boolean canShowRotationButton() { return mIsNavigationBarShowing || mBehavior == WindowInsetsController.BEHAVIOR_DEFAULT || isGesturalMode(mNavBarMode) || mTaskBarVisible; || isGesturalMode(mNavBarMode); } @DrawableRes Loading packages/SystemUI/tests/src/com/android/systemui/shared/rotation/RotationButtonControllerTest.kt +0 −14 Original line number Diff line number Diff line Loading @@ -60,18 +60,4 @@ class RotationButtonControllerTest : SysuiTestCase() { assertThat(mController.canShowRotationButton()).isTrue() } @Test fun ifTaskbarVisible_showRotationSuggestion() { mController.onNavigationBarWindowVisibilityChange( /* showing = */ false) mController.onBehaviorChanged(Display.DEFAULT_DISPLAY, WindowInsetsController.BEHAVIOR_SHOW_TRANSIENT_BARS_BY_SWIPE) mController.onNavigationModeChanged(WindowManagerPolicyConstants.NAV_BAR_MODE_3BUTTON) mController.onTaskbarStateChange( /* visible = */ false, /* stashed = */ false) assertThat(mController.canShowRotationButton()).isFalse() mController.onTaskbarStateChange( /* visible = */ true, /* stashed = */ false) assertThat(mController.canShowRotationButton()).isTrue() } } Loading
packages/SystemUI/shared/src/com/android/systemui/shared/rotation/RotationButtonController.java +1 −2 Original line number Diff line number Diff line Loading @@ -497,8 +497,7 @@ public class RotationButtonController { boolean canShowRotationButton() { return mIsNavigationBarShowing || mBehavior == WindowInsetsController.BEHAVIOR_DEFAULT || isGesturalMode(mNavBarMode) || mTaskBarVisible; || isGesturalMode(mNavBarMode); } @DrawableRes Loading
packages/SystemUI/tests/src/com/android/systemui/shared/rotation/RotationButtonControllerTest.kt +0 −14 Original line number Diff line number Diff line Loading @@ -60,18 +60,4 @@ class RotationButtonControllerTest : SysuiTestCase() { assertThat(mController.canShowRotationButton()).isTrue() } @Test fun ifTaskbarVisible_showRotationSuggestion() { mController.onNavigationBarWindowVisibilityChange( /* showing = */ false) mController.onBehaviorChanged(Display.DEFAULT_DISPLAY, WindowInsetsController.BEHAVIOR_SHOW_TRANSIENT_BARS_BY_SWIPE) mController.onNavigationModeChanged(WindowManagerPolicyConstants.NAV_BAR_MODE_3BUTTON) mController.onTaskbarStateChange( /* visible = */ false, /* stashed = */ false) assertThat(mController.canShowRotationButton()).isFalse() mController.onTaskbarStateChange( /* visible = */ true, /* stashed = */ false) assertThat(mController.canShowRotationButton()).isTrue() } }