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:
Andrii Kulian
2020-03-27 01:46:40 +00:00
committed by Automerger Merge Worker
25 changed files with 84 additions and 94 deletions

View File

@@ -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);