From cde60e24b0b73dee989f5b7d3ae7e2000d77f822 Mon Sep 17 00:00:00 2001 From: Kevin Date: Wed, 8 May 2019 18:21:36 -0700 Subject: [PATCH] Fix fallback recents not updating list from app When launching an from recents, onStop is not called until the app is fully taken over and the remote animation finishes. As a result, if the user hits the overview button right before the animation finishes, we animate back to recents but never call onStart which is where we hook in to update the recents list. The fix naturally is to move this to onResume instead as once the animation begins, the activity is paused. Bug: 132293341 Test: Repro from bug, correctly updates Change-Id: Ie6cfdc4d5aa6b1742a3bce3e14ab5ab6a4f05526 --- go/quickstep/src/com/android/quickstep/RecentsActivity.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/go/quickstep/src/com/android/quickstep/RecentsActivity.java b/go/quickstep/src/com/android/quickstep/RecentsActivity.java index 9fb80679e3..34315f3b70 100644 --- a/go/quickstep/src/com/android/quickstep/RecentsActivity.java +++ b/go/quickstep/src/com/android/quickstep/RecentsActivity.java @@ -67,8 +67,8 @@ public final class RecentsActivity extends BaseRecentsActivity { } @Override - protected void onStart() { + protected void onResume() { mIconRecentsView.onBeginTransitionToOverview(); - super.onStart(); + super.onResume(); } }