[automerge] Fix StatusBar test 2p: 68afc54a39
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17158283 Change-Id: Ib58579341ec57097024984f0528d5b8e6b28b96a Merged-In: If5ce110b506b6b4229dd6ea5a39542369742bc51
This commit is contained in:
@@ -351,6 +351,10 @@ public class StatusBarTest extends SysuiTestCase {
|
|||||||
when(mStatusBarComponentFactory.create()).thenReturn(mStatusBarComponent);
|
when(mStatusBarComponentFactory.create()).thenReturn(mStatusBarComponent);
|
||||||
when(mStatusBarComponent.getNotificationShadeWindowViewController()).thenReturn(
|
when(mStatusBarComponent.getNotificationShadeWindowViewController()).thenReturn(
|
||||||
mNotificationShadeWindowViewController);
|
mNotificationShadeWindowViewController);
|
||||||
|
doAnswer(invocation -> {
|
||||||
|
((Runnable) invocation.getArgument(0)).run();
|
||||||
|
return null;
|
||||||
|
}).when(mNotificationShadeWindowController).batchApplyWindowLayoutParams(any());
|
||||||
|
|
||||||
mShadeController = new ShadeControllerImpl(mCommandQueue,
|
mShadeController = new ShadeControllerImpl(mCommandQueue,
|
||||||
mStatusBarStateController, mNotificationShadeWindowController,
|
mStatusBarStateController, mNotificationShadeWindowController,
|
||||||
|
|||||||
Reference in New Issue
Block a user