From 16f2cd6cad2d71b9c8b155a0fd7a0109e0647a3a Mon Sep 17 00:00:00 2001 From: vadimt Date: Mon, 6 May 2019 10:38:08 -0700 Subject: [PATCH] Removing pressing home button twice Bug: 124239413 Change-Id: I8c14c7e939bb4442cc830dcff3ec266ed8ed7186 --- .../launcher3/tapl/LauncherInstrumentation.java | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java b/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java index f5c5a8d0b2..87ef0448b8 100644 --- a/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java +++ b/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java @@ -374,16 +374,6 @@ public final class LauncherInstrumentation { event -> true, "Pressing Home didn't produce any events"); mDevice.waitForIdle(); - - // Temporarily press home twice as the first click sometimes gets ignored (b/124239413) - executeAndWaitForEvent( - () -> { - log("LauncherInstrumentation.pressHome before clicking"); - waitForSystemUiObject("home").click(); - }, - event -> true, - "Pressing Home didn't produce any events"); - mDevice.waitForIdle(); } try (LauncherInstrumentation.Closable c = addContextLayer( "performed action to switch to Home - " + action)) {