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

Commit dedd760e authored by Makoto Onuki's avatar Makoto Onuki Committed by Android (Google) Code Review
Browse files

Merge "Fix CtsShortcutHostTestCases#testSecondaryUser" into rvc-dev

parents aa709348 477c433b
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -197,7 +197,8 @@ public class ShortcutManagerTestUtils {
        final String PREFIX = "Launcher: ComponentInfo{";
        final String POSTFIX = "}";
        final List<String> result = runShortcutCommandForSuccess(
                instrumentation, "get-default-launcher");
                instrumentation, "get-default-launcher --user "
                + instrumentation.getContext().getUserId());
        for (String s : result) {
            if (s.startsWith(PREFIX) && s.endsWith(POSTFIX)) {
                return s.substring(PREFIX.length(), s.length() - POSTFIX.length());