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

Commit 6632c765 authored by Pinyao Ting's avatar Pinyao Ting
Browse files

Fix unit test

Fix an issue in ShortcutManagerTest12 when AppSearch is disabled.

Bug: 207109003
Test: atest ShortcutManagerTest12
Change-Id: I9871604a7eba0a08b6358de5a3b3b251d7625544
parent 4b6de53e
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -49,8 +49,11 @@ public class ShortcutManagerTest12 extends BaseShortcutManagerTest {

    @Override
    protected void tearDown() throws Exception {
        if (mService.isAppSearchEnabled()) {
            setCaller(CALLING_PACKAGE_1, USER_0);
        mService.getPackageShortcutForTest(CALLING_PACKAGE_1, USER_0).removeAllShortcutsAsync();
            mService.getPackageShortcutForTest(CALLING_PACKAGE_1, USER_0)
                    .removeAllShortcutsAsync();
        }
        super.tearDown();
    }