Loading packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java +1 −1 Original line number Diff line number Diff line Loading @@ -579,7 +579,7 @@ public class StatusBarKeyguardViewManager implements RemoteInputController.Callb ViewRootImpl viewRoot = getViewRootImpl(); if (viewRoot != null) { viewRoot.getOnBackInvokedDispatcher().registerOnBackInvokedCallback( OnBackInvokedDispatcher.PRIORITY_OVERLAY, mOnBackInvokedCallback); OnBackInvokedDispatcher.PRIORITY_DEFAULT, mOnBackInvokedCallback); mIsBackCallbackRegistered = true; } else { if (DEBUG) { Loading packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManagerTest.java +4 −4 Original line number Diff line number Diff line Loading @@ -606,7 +606,7 @@ public class StatusBarKeyguardViewManagerTest extends SysuiTestCase { /* verify that a predictive back callback is registered when the bouncer becomes visible */ mBouncerExpansionCallback.onVisibilityChanged(true); verify(mOnBackInvokedDispatcher).registerOnBackInvokedCallback( eq(OnBackInvokedDispatcher.PRIORITY_OVERLAY), eq(OnBackInvokedDispatcher.PRIORITY_DEFAULT), mBackCallbackCaptor.capture()); /* verify that the same callback is unregistered when the bouncer becomes invisible */ Loading @@ -621,7 +621,7 @@ public class StatusBarKeyguardViewManagerTest extends SysuiTestCase { mBouncerExpansionCallback.onVisibilityChanged(true); /* capture the predictive back callback during registration */ verify(mOnBackInvokedDispatcher).registerOnBackInvokedCallback( eq(OnBackInvokedDispatcher.PRIORITY_OVERLAY), eq(OnBackInvokedDispatcher.PRIORITY_DEFAULT), mBackCallbackCaptor.capture()); when(mPrimaryBouncerInteractor.isFullyShowing()).thenReturn(true); Loading @@ -641,7 +641,7 @@ public class StatusBarKeyguardViewManagerTest extends SysuiTestCase { mBouncerExpansionCallback.onVisibilityChanged(true); /* capture the predictive back callback during registration */ verify(mOnBackInvokedDispatcher).registerOnBackInvokedCallback( eq(OnBackInvokedDispatcher.PRIORITY_OVERLAY), eq(OnBackInvokedDispatcher.PRIORITY_DEFAULT), mBackCallbackCaptor.capture()); assertTrue(mBackCallbackCaptor.getValue() instanceof OnBackAnimationCallback); Loading @@ -659,7 +659,7 @@ public class StatusBarKeyguardViewManagerTest extends SysuiTestCase { mBouncerExpansionCallback.onVisibilityChanged(true); /* capture the predictive back callback during registration */ verify(mOnBackInvokedDispatcher).registerOnBackInvokedCallback( eq(OnBackInvokedDispatcher.PRIORITY_OVERLAY), eq(OnBackInvokedDispatcher.PRIORITY_DEFAULT), mBackCallbackCaptor.capture()); assertTrue(mBackCallbackCaptor.getValue() instanceof OnBackAnimationCallback); Loading Loading
packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java +1 −1 Original line number Diff line number Diff line Loading @@ -579,7 +579,7 @@ public class StatusBarKeyguardViewManager implements RemoteInputController.Callb ViewRootImpl viewRoot = getViewRootImpl(); if (viewRoot != null) { viewRoot.getOnBackInvokedDispatcher().registerOnBackInvokedCallback( OnBackInvokedDispatcher.PRIORITY_OVERLAY, mOnBackInvokedCallback); OnBackInvokedDispatcher.PRIORITY_DEFAULT, mOnBackInvokedCallback); mIsBackCallbackRegistered = true; } else { if (DEBUG) { Loading
packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManagerTest.java +4 −4 Original line number Diff line number Diff line Loading @@ -606,7 +606,7 @@ public class StatusBarKeyguardViewManagerTest extends SysuiTestCase { /* verify that a predictive back callback is registered when the bouncer becomes visible */ mBouncerExpansionCallback.onVisibilityChanged(true); verify(mOnBackInvokedDispatcher).registerOnBackInvokedCallback( eq(OnBackInvokedDispatcher.PRIORITY_OVERLAY), eq(OnBackInvokedDispatcher.PRIORITY_DEFAULT), mBackCallbackCaptor.capture()); /* verify that the same callback is unregistered when the bouncer becomes invisible */ Loading @@ -621,7 +621,7 @@ public class StatusBarKeyguardViewManagerTest extends SysuiTestCase { mBouncerExpansionCallback.onVisibilityChanged(true); /* capture the predictive back callback during registration */ verify(mOnBackInvokedDispatcher).registerOnBackInvokedCallback( eq(OnBackInvokedDispatcher.PRIORITY_OVERLAY), eq(OnBackInvokedDispatcher.PRIORITY_DEFAULT), mBackCallbackCaptor.capture()); when(mPrimaryBouncerInteractor.isFullyShowing()).thenReturn(true); Loading @@ -641,7 +641,7 @@ public class StatusBarKeyguardViewManagerTest extends SysuiTestCase { mBouncerExpansionCallback.onVisibilityChanged(true); /* capture the predictive back callback during registration */ verify(mOnBackInvokedDispatcher).registerOnBackInvokedCallback( eq(OnBackInvokedDispatcher.PRIORITY_OVERLAY), eq(OnBackInvokedDispatcher.PRIORITY_DEFAULT), mBackCallbackCaptor.capture()); assertTrue(mBackCallbackCaptor.getValue() instanceof OnBackAnimationCallback); Loading @@ -659,7 +659,7 @@ public class StatusBarKeyguardViewManagerTest extends SysuiTestCase { mBouncerExpansionCallback.onVisibilityChanged(true); /* capture the predictive back callback during registration */ verify(mOnBackInvokedDispatcher).registerOnBackInvokedCallback( eq(OnBackInvokedDispatcher.PRIORITY_OVERLAY), eq(OnBackInvokedDispatcher.PRIORITY_DEFAULT), mBackCallbackCaptor.capture()); assertTrue(mBackCallbackCaptor.getValue() instanceof OnBackAnimationCallback); Loading