Loading quickstep/src/com/android/quickstep/util/RecentsAnimationListenerSet.java +6 −2 Original line number Diff line number Diff line Loading @@ -58,7 +58,7 @@ public class RecentsAnimationListenerSet implements RecentsAnimationListener { SwipeAnimationTargetSet targetSet = new SwipeAnimationTargetSet(controller, targets, homeContentInsets, minimizedHomeBounds); Utilities.postAsyncCallback(MAIN_THREAD_EXECUTOR.getHandler(), () -> { for (SwipeAnimationListener listener : mListeners) { for (SwipeAnimationListener listener : getListeners()) { listener.onRecentsAnimationStart(targetSet); } }); Loading @@ -67,9 +67,13 @@ public class RecentsAnimationListenerSet implements RecentsAnimationListener { @Override public final void onAnimationCanceled() { Utilities.postAsyncCallback(MAIN_THREAD_EXECUTOR.getHandler(), () -> { for (SwipeAnimationListener listener : mListeners) { for (SwipeAnimationListener listener : getListeners()) { listener.onRecentsAnimationCanceled(); } }); } private SwipeAnimationListener[] getListeners() { return mListeners.toArray(new SwipeAnimationListener[mListeners.size()]); } } tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java +10 −0 Original line number Diff line number Diff line Loading @@ -266,6 +266,16 @@ 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"); getSystemUiObject("home").click(); }, event -> true, "Pressing Home didn't produce any events"); mDevice.waitForIdle(); return getWorkspace(); } Loading Loading
quickstep/src/com/android/quickstep/util/RecentsAnimationListenerSet.java +6 −2 Original line number Diff line number Diff line Loading @@ -58,7 +58,7 @@ public class RecentsAnimationListenerSet implements RecentsAnimationListener { SwipeAnimationTargetSet targetSet = new SwipeAnimationTargetSet(controller, targets, homeContentInsets, minimizedHomeBounds); Utilities.postAsyncCallback(MAIN_THREAD_EXECUTOR.getHandler(), () -> { for (SwipeAnimationListener listener : mListeners) { for (SwipeAnimationListener listener : getListeners()) { listener.onRecentsAnimationStart(targetSet); } }); Loading @@ -67,9 +67,13 @@ public class RecentsAnimationListenerSet implements RecentsAnimationListener { @Override public final void onAnimationCanceled() { Utilities.postAsyncCallback(MAIN_THREAD_EXECUTOR.getHandler(), () -> { for (SwipeAnimationListener listener : mListeners) { for (SwipeAnimationListener listener : getListeners()) { listener.onRecentsAnimationCanceled(); } }); } private SwipeAnimationListener[] getListeners() { return mListeners.toArray(new SwipeAnimationListener[mListeners.size()]); } }
tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java +10 −0 Original line number Diff line number Diff line Loading @@ -266,6 +266,16 @@ 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"); getSystemUiObject("home").click(); }, event -> true, "Pressing Home didn't produce any events"); mDevice.waitForIdle(); return getWorkspace(); } Loading