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

Commit 240d62f7 authored by Manjeet Rulhania's avatar Manjeet Rulhania Committed by Automerger Merge Worker
Browse files

Rely on Display#getRealSize when dumping XML hierarchy am: 74184991 am: 90075dd1

parents d632a397 90075dd1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -107,7 +107,7 @@ public class DumpCommand extends Command {
                        DisplayManagerGlobal.getInstance().getRealDisplay(Display.DEFAULT_DISPLAY);
                int rotation = display.getRotation();
                Point size = new Point();
                display.getSize(size);
                display.getRealSize(size);
                AccessibilityNodeInfoDumper.dumpWindowToFile(info, dumpFile, rotation, size.x,
                        size.y);
            }
+1 −1
Original line number Diff line number Diff line
@@ -139,7 +139,7 @@ public class AccessibilityNodeInfoDumper {
                serializer.attribute("", "id", Integer.toString(displayId));
                int rotation = display.getRotation();
                Point size = new Point();
                display.getSize(size);
                display.getRealSize(size);
                for (int i = 0, n = windows.size(); i < n; ++i) {
                    dumpWindowRec(windows.get(i), serializer, i, size.x, size.y, rotation);
                }
+1 −1
Original line number Diff line number Diff line
@@ -767,7 +767,7 @@ public class UiDevice {
        if(root != null) {
            Display display = getAutomatorBridge().getDefaultDisplay();
            Point size = new Point();
            display.getSize(size);
            display.getRealSize(size);
            AccessibilityNodeInfoDumper.dumpWindowToFile(root,
                    new File(new File(Environment.getDataDirectory(), "local/tmp"), fileName),
                    display.getRotation(), size.x, size.y);