diff options
| author | 2022-08-17 05:01:58 +0000 | |
|---|---|---|
| committer | 2022-08-17 05:01:58 +0000 | |
| commit | 13255a0a50585f10c8b8076d8cfe14fe7df70d0b (patch) | |
| tree | 20643232d50bf4e54e49a2bd555f2eadff615614 | |
| parent | b8c713307869e34822fddb1300a92c97aefd6b5e (diff) | |
| parent | d1e350c7fce4dd16ec17cbbf717a0fe225af6a7d (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.java | 4 |
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; } |