Merge "Fix CtsShortcutHostTestCases#testSecondaryUser" into rvc-dev am: dedd760e36

Change-Id: I0ca5f67f95ac4b18b9fe6953ef49b4dc93e269a5
This commit is contained in:
Makoto Onuki
2020-04-09 16:47:59 +00:00
committed by Automerger Merge Worker

View File

@@ -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());