Merge "Report bounds instead of size in WindowMetrics" into rvc-dev am: 363edf449a am: f8bb4fef74 am: 7e9a4c2f34 am: f68ab26611
Change-Id: I37268426928fa1da47ddb3ba68f080e1824dfedd
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user