From 4637260ab93ab0f12415460485ddc166cef572f1 Mon Sep 17 00:00:00 2001 From: Alex Chau Date: Wed, 23 Jun 2021 19:06:20 +0100 Subject: [PATCH] Fix Tapl Background.switchToOverview for tablets - The test failed because of unexpected touch event recoreded - This is because it does not expect the gesture to start from launcher. But with taskbar present, the touch will be recorded from taskbar Bug: 191344757 Test: TaplTestsQuickStep Change-Id: I09b5a3029eef5cdc874bbbe8653976f12136144c --- tests/tapl/com/android/launcher3/tapl/Background.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/tapl/com/android/launcher3/tapl/Background.java b/tests/tapl/com/android/launcher3/tapl/Background.java index 55be593fb4..809e3edd91 100644 --- a/tests/tapl/com/android/launcher3/tapl/Background.java +++ b/tests/tapl/com/android/launcher3/tapl/Background.java @@ -68,7 +68,7 @@ public class Background extends LauncherInstrumentation.VisibleContainer { } protected boolean zeroButtonToOverviewGestureStartsInLauncher() { - return false; + return mLauncher.isTablet(); } protected void goToOverviewUnchecked() {