From f43ea5d4d2286a9b00435893f7528255a898d4d7 Mon Sep 17 00:00:00 2001 From: George Mount Date: Thu, 26 May 2016 09:52:53 -0700 Subject: [PATCH] Fix Activity Transition mess-up. Bug 28610520 isTopOfTask() was returns false in onResume always because it wasn't being made visible until after onResume. The visibility of the window is not important for this method (older versions didn't check it at all), so that was removed. Change-Id: I45e506e72356cc3808e2e9340739726c99da7d97 --- core/java/android/app/Activity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/java/android/app/Activity.java b/core/java/android/app/Activity.java index 6d405f6bbd0eb..ac5f3effa1f98 100644 --- a/core/java/android/app/Activity.java +++ b/core/java/android/app/Activity.java @@ -5948,7 +5948,7 @@ public class Activity extends ContextThemeWrapper * @return true if this is the topmost, non-finishing activity in its task. */ private boolean isTopOfTask() { - if (mToken == null || mWindow == null || !mWindowAdded) { + if (mToken == null || mWindow == null) { return false; } try {