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

Commit d58ae513 authored by Alex Chau's avatar Alex Chau
Browse files

Don't treat object from test package as system anomaly dialog

- OOP test activity has an alertTitle and shouldn't be treated as system anomaly dialog

Fix: 214558538
Test: NexusLauncherOutOfProcTests / MemoryTests
Change-Id: Ia9c330c3c3f48b43fbada40a3410ccc9fb8bfbb8
parent 1b6d46f8
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -430,12 +430,13 @@ public final class LauncherInstrumentation {
            {
                final StringBuilder sb = new StringBuilder();

                UiObject2 object = mDevice.findObject(By.res("android", "alertTitle"));
                UiObject2 object =
                        mDevice.findObject(By.res("android", "alertTitle").pkg("android"));
                if (object != null) {
                    sb.append("TITLE: ").append(object.getText());
                }

                object = mDevice.findObject(By.res("android", "message"));
                object = mDevice.findObject(By.res("android", "message").pkg("android"));
                if (object != null) {
                    sb.append(" PACKAGE: ").append(object.getApplicationPackage())
                            .append(" MESSAGE: ").append(object.getText());