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/I28000010095241260
Bug: 244261956
Bug: 250459417

Change-Id: Ib867648d9a1265b029e2b03fb1ce12bd8677085c
Merged-In: Ib867648d9a1265b029e2b03fb1ce12bd8677085c
This commit is contained in:
Josh Chien
2022-10-03 10:11:31 +00:00
parent 94bd703e56
commit 6eb825e34c

View File

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