Using different resource size for touch region in landscape

Bug: 132917885
Change-Id: Ib702fd17fecff980db2e1d00f05cd055bcc3185a
This commit is contained in:
Sunny Goyal
2019-05-20 10:08:34 -07:00
parent 136805abdc
commit 1b40b731b2
5 changed files with 20 additions and 10 deletions

View File

@@ -243,7 +243,7 @@ public abstract class AbstractLauncherUiTest {
*/
protected UiObject2 scrollAndFind(UiObject2 container, BySelector condition) {
final int margin = ResourceUtils.getNavbarSize(
ResourceUtils.NAVBAR_VERTICAL_SIZE, mLauncher.getResources()) + 1;
ResourceUtils.NAVBAR_PORTRAIT_BOTTOM_SIZE, mLauncher.getResources()) + 1;
container.setGestureMargins(0, 0, 0, margin);
int i = 0;