From 45c12ff1b5d7ffcd7cf7ce21cc05fb93df9df140 Mon Sep 17 00:00:00 2001 From: Vinit Nayak Date: Tue, 30 Jul 2019 15:33:12 -0700 Subject: [PATCH] Set recents view to be visible from alt+tab Recents was being initialized but was not marked as attached to app window. This was causing it's animator to never make it View.VISIBLE. Test: Open any app On physical keyboard press alt+tab Observe that overview shows up fixes: 138396234 Change-Id: I9e6c001242f4552027e79b162fb812f476823a37 --- .../com/android/quickstep/AppToOverviewAnimationProvider.java | 1 + .../src/com/android/quickstep/OverviewCommandHelper.java | 1 + 2 files changed, 2 insertions(+) diff --git a/quickstep/recents_ui_overrides/src/com/android/quickstep/AppToOverviewAnimationProvider.java b/quickstep/recents_ui_overrides/src/com/android/quickstep/AppToOverviewAnimationProvider.java index 5e77e0adee..5ebefa337f 100644 --- a/quickstep/recents_ui_overrides/src/com/android/quickstep/AppToOverviewAnimationProvider.java +++ b/quickstep/recents_ui_overrides/src/com/android/quickstep/AppToOverviewAnimationProvider.java @@ -81,6 +81,7 @@ final class AppToOverviewAnimationProvider imple }); factory.onRemoteAnimationReceived(null); factory.createActivityController(RECENTS_LAUNCH_DURATION); + factory.setRecentsAttachedToAppWindow(true, false); mActivity = activity; mRecentsView = mActivity.getOverviewPanel(); return false; diff --git a/quickstep/recents_ui_overrides/src/com/android/quickstep/OverviewCommandHelper.java b/quickstep/recents_ui_overrides/src/com/android/quickstep/OverviewCommandHelper.java index 6533c63efa..a94f25d2b2 100644 --- a/quickstep/recents_ui_overrides/src/com/android/quickstep/OverviewCommandHelper.java +++ b/quickstep/recents_ui_overrides/src/com/android/quickstep/OverviewCommandHelper.java @@ -99,6 +99,7 @@ public class OverviewCommandHelper { @Override protected void onTransitionComplete() { + // TODO(b/138729100) This doesn't execute first time launcher is run if (mTriggeredFromAltTab) { RecentsView rv = (RecentsView) mHelper.getVisibleRecentsView(); if (rv == null) {