Loading packages/SystemUI/src/com/android/systemui/keyguard/domain/interactor/KeyguardKeyEventInteractor.kt +2 −2 Original line number Diff line number Diff line Loading @@ -60,7 +60,6 @@ constructor( return collapseShadeLockedOrShowPrimaryBouncer() } } when (event.keyCode) { KeyEvent.KEYCODE_MENU -> return dispatchMenuKeyEvent() } Loading Loading @@ -98,7 +97,8 @@ constructor( (statusBarStateController.state != StatusBarState.SHADE) && statusBarKeyguardViewManager.shouldDismissOnMenuPressed() if (shouldUnlockOnMenuPressed) { return collapseShadeLockedOrShowPrimaryBouncer() shadeController.animateCollapseShadeForced() return true } return false } Loading packages/SystemUI/tests/src/com/android/systemui/keyguard/domain/interactor/KeyguardKeyEventInteractorTest.kt +0 −9 Original line number Diff line number Diff line Loading @@ -129,15 +129,6 @@ class KeyguardKeyEventInteractorTest : SysuiTestCase() { ) } @Test fun dispatchKeyEvent_menuActionUp_awakeKeyguard_showsPrimaryBouncer() { powerInteractor.setAwakeForTest() whenever(statusBarStateController.state).thenReturn(StatusBarState.KEYGUARD) whenever(statusBarKeyguardViewManager.shouldDismissOnMenuPressed()).thenReturn(true) verifyActionUpShowsPrimaryBouncer(KeyEvent.KEYCODE_MENU) } @Test fun dispatchKeyEvent_menuActionUp_awakeShadeLocked_collapsesShade() { powerInteractor.setAwakeForTest() Loading Loading
packages/SystemUI/src/com/android/systemui/keyguard/domain/interactor/KeyguardKeyEventInteractor.kt +2 −2 Original line number Diff line number Diff line Loading @@ -60,7 +60,6 @@ constructor( return collapseShadeLockedOrShowPrimaryBouncer() } } when (event.keyCode) { KeyEvent.KEYCODE_MENU -> return dispatchMenuKeyEvent() } Loading Loading @@ -98,7 +97,8 @@ constructor( (statusBarStateController.state != StatusBarState.SHADE) && statusBarKeyguardViewManager.shouldDismissOnMenuPressed() if (shouldUnlockOnMenuPressed) { return collapseShadeLockedOrShowPrimaryBouncer() shadeController.animateCollapseShadeForced() return true } return false } Loading
packages/SystemUI/tests/src/com/android/systemui/keyguard/domain/interactor/KeyguardKeyEventInteractorTest.kt +0 −9 Original line number Diff line number Diff line Loading @@ -129,15 +129,6 @@ class KeyguardKeyEventInteractorTest : SysuiTestCase() { ) } @Test fun dispatchKeyEvent_menuActionUp_awakeKeyguard_showsPrimaryBouncer() { powerInteractor.setAwakeForTest() whenever(statusBarStateController.state).thenReturn(StatusBarState.KEYGUARD) whenever(statusBarKeyguardViewManager.shouldDismissOnMenuPressed()).thenReturn(true) verifyActionUpShowsPrimaryBouncer(KeyEvent.KEYCODE_MENU) } @Test fun dispatchKeyEvent_menuActionUp_awakeShadeLocked_collapsesShade() { powerInteractor.setAwakeForTest() Loading