Increased the ratio of the bottom coordinate to the screen for doing quick switch gesture in tests.

The original ratio is not lower enough on the bottom of screen to trigger quick swich gesture in
some device types.

Test: http://ab/I02200010095374847
Bug: 244261956
Bug: 250459417

Change-Id: Ib867648d9a1265b029e2b03fb1ce12bd8677085c
This commit is contained in:
Josh Chien
2022-10-03 10:11:31 +00:00
parent df84851b11
commit 510da6dd98

View File

@@ -63,7 +63,7 @@ class GameAppHelper @JvmOverloads constructor(
wmHelper: WindowManagerStateHelper,
direction: Direction
): Boolean {
val ratioForScreenBottom = 0.97
val ratioForScreenBottom = 0.99
val fullView = wmHelper.getWindowRegion(componentMatcher)
require(!fullView.isEmpty) { "Target $componentMatcher view not found." }