Fix bug where launcher closing animation isn't run.

In some cases, we prematurely clear the force invisible flag before composing
the launcher animation, causing us to skip the animation.

Bug: 77205145
Change-Id: I4224741649a4fef34e255abac7b66bcf919c042f
This commit is contained in:
Jon Miranda committed 2018-05-07 11:46:33 -07:00
1 parent 76a2a6ae66
commit 717127186a
2 files changed
+13 -9

No files matched your search

@@ -142,15 +142,6 @@ public abstract class BaseActivity extends Activity {
}
}
@Override
public void onEnterAnimationComplete() {
super.onEnterAnimationComplete();
// Needed for activities that auto-enter PiP, which will not trigger a remote animation to
// be created
clearForceInvisibleFlag(INVISIBLE_BY_STATE_HANDLER);
}
@Override
protected void onStop() {
mActivityFlags &= ~ACTIVITY_STATE_STARTED & ~ACTIVITY_STATE_USER_ACTIVE;