summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Yunfan Chen <yunfanc@google.com> 2022-08-17 05:01:58 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2022-08-17 05:01:58 +0000
commit13255a0a50585f10c8b8076d8cfe14fe7df70d0b (patch)
tree20643232d50bf4e54e49a2bd555f2eadff615614
parentb8c713307869e34822fddb1300a92c97aefd6b5e (diff)
parentd1e350c7fce4dd16ec17cbbf717a0fe225af6a7d (diff)
Merge "Fix display size calculations in large screen (2/3)" into tm-qpr-dev
-rw-r--r--cmds/uiautomator/library/core-src/com/android/uiautomator/core/UiDevice.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmds/uiautomator/library/core-src/com/android/uiautomator/core/UiDevice.java b/cmds/uiautomator/library/core-src/com/android/uiautomator/core/UiDevice.java
index b1b432bf79ab..6fd2bf250e2c 100644
--- a/cmds/uiautomator/library/core-src/com/android/uiautomator/core/UiDevice.java
+++ b/cmds/uiautomator/library/core-src/com/android/uiautomator/core/UiDevice.java
@@ -380,7 +380,7 @@ public class UiDevice {
Tracer.trace();
Display display = getAutomatorBridge().getDefaultDisplay();
Point p = new Point();
- display.getSize(p);
+ display.getRealSize(p);
return p.x;
}
@@ -394,7 +394,7 @@ public class UiDevice {
Tracer.trace();
Display display = getAutomatorBridge().getDefaultDisplay();
Point p = new Point();
- display.getSize(p);
+ display.getRealSize(p);
return p.y;
}