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

Commit b8982509 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Diagnosing when only SysUI is visible." into sc-v2-dev am: 2be25906 am: a14e1094

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15375786

Change-Id: I6f7d0519871e4a19bc33ed03f1f36ef762dccb11
parents 97eabcaf a14e1094
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -383,6 +383,14 @@ public final class LauncherInstrumentation {

            if (hasSystemUiObject("keyguard_status_view")) return "Phone is locked";

            final String visibleApps = mDevice.findObjects(getAnyObjectSelector())
                    .stream()
                    .map(LauncherInstrumentation::getApplicationPackageSafe)
                    .distinct()
                    .filter(pkg -> pkg != null)
                    .collect(Collectors.joining(","));
            if (SYSTEMUI_PACKAGE.equals(visibleApps)) return "Only System UI views are visible";

            if (!mDevice.wait(Until.hasObject(getAnyObjectSelector()), WAIT_TIME_MS)) {
                return "Screen is empty";
            }