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

Commit 4df0bbaf authored by gang.huang's avatar gang.huang Committed by Pinyao Ting
Browse files

Change the wait time of setDefaultLauncher from 20s to 60s

On some low-performance devices, the method setDefaultLauncher can not be completed whithin 20s

Bug: 270519786
Change-Id: Iab78a57d4329095358cad6e79088909b48a22264
Merged-In: Iab78a57d4329095358cad6e79088909b48a22264
parent 55ff2354
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -263,7 +263,7 @@ public class ShortcutManagerTestUtils {
                + instrumentation.getContext().getUserId() + " " + RoleManager.ROLE_HOME + " "
                + packageName + " 0");
        waitUntil("Failed to get shortcut access",
                () -> hasShortcutAccess(instrumentation, packageName), 20);
                () -> hasShortcutAccess(instrumentation, packageName), 60);
    }

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