Correct wrong drag destination in dragDividerToDismissSplit

Correct wrong drag destination in dragDividerToDismissSplit

Bug: 231399943
Test: atest WMShellFlickerTests:DismissSplitScreenByDivider
Change-Id: Iec102381ebb1f2d7da66b8f479d0734c45a5ba73
This commit is contained in:
Chilun Huang
2022-08-03 23:34:34 +08:00
parent 42efa4976d
commit 0395d39cfb

View File

@@ -228,7 +228,7 @@ class SplitScreenHelper(
?.layerStackSpace
?: error("Display not found")
val dividerBar = device.wait(Until.findObject(dividerBarSelector), TIMEOUT_MS)
dividerBar.drag(Point(displayBounds.width, displayBounds.width))
dividerBar.drag(Point(displayBounds.width * 4 / 5, displayBounds.height * 4 / 5))
}
}
}