Merge "Fix CtsShortcutHostTestCases#testSecondaryUser" into rvc-dev am: dedd760e36
Change-Id: I0ca5f67f95ac4b18b9fe6953ef49b4dc93e269a5
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user