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
This commit is contained in:
George Mount
2016-05-26 09:52:53 -07:00
parent 5c9444216d
commit f43ea5d4d2

View File

@@ -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 {