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

Commit 1e091c82 authored by Makoto Onuki's avatar Makoto Onuki
Browse files

Fix flakey shortcut CTS

- After changing the default launcher, clear the cached launcher.

Bug: 72753182
Test: atest CtsShortcutManagerTestCases
Test: atest CtsShortcutHostTestCases
Change-Id: If9b2e0fecb4c94320e5e6125f61c5802bebeb292
parent 64dd7468
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -210,6 +210,9 @@ public class ShortcutManagerTestUtils {
        runCommand(instrumentation, "cmd package set-home-activity --user "
                + instrumentation.getContext().getUserId() + " " + component,
                result -> result.contains("Success"));
        runCommand(instrumentation, "cmd shortcut clear-default-launcher --user "
                        + instrumentation.getContext().getUserId(),
                result -> result.contains("Success"));
    }

    public static void setDefaultLauncher(Instrumentation instrumentation, Context packageContext) {