Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 946d7b51 authored by Jacky Wang's avatar Jacky Wang Committed by Android (Google) Code Review
Browse files

Merge "Mock the startActivityAsUser to prevent silent crash" into main

parents f5277376 3ef13474
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -174,6 +174,7 @@ public class MenuViewLayerTest extends SysuiTestCase {
        mMenuAnimationController = mMenuView.getMenuAnimationController();
        mMenuAnimationController = mMenuView.getMenuAnimationController();


        doNothing().when(mSpyContext).startActivity(any());
        doNothing().when(mSpyContext).startActivity(any());
        doNothing().when(mSpyContext).startActivityAsUser(any(), any());
        when(mSpyContext.getPackageManager()).thenReturn(mMockPackageManager);
        when(mSpyContext.getPackageManager()).thenReturn(mMockPackageManager);


        mLastAccessibilityButtonTargets =
        mLastAccessibilityButtonTargets =