summaryrefslogtreecommitdiff
path: root/test-runner/src/android/test/TouchUtils.java
diff options
context:
space:
mode:
Diffstat (limited to 'test-runner/src/android/test/TouchUtils.java')
-rw-r--r--test-runner/src/android/test/TouchUtils.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/test-runner/src/android/test/TouchUtils.java b/test-runner/src/android/test/TouchUtils.java
index bb4e00ba1ef9..f2f0be73c010 100644
--- a/test-runner/src/android/test/TouchUtils.java
+++ b/test-runner/src/android/test/TouchUtils.java
@@ -223,7 +223,7 @@ public class TouchUtils {
public static void dragViewToBottom(InstrumentationTestCase test, Activity activity, View v,
int stepCount) {
int screenHeight =
- activity.getWindowManager().getCurrentWindowMetrics().getSize().getHeight();
+ activity.getWindowManager().getCurrentWindowMetrics().getBounds().height();
int[] xy = new int[2];
v.getLocationOnScreen(xy);