Check if the TaskView is a live tile task in task launch animation

Fixes: 185540107
Test: manual
Change-Id: I7f1503d8ac6dee4c153a60d5f72fae9a37f1c387
This commit is contained in:
Tracy Zhou
2021-04-16 16:35:42 -07:00
parent 9a8c77afe9
commit ddc33d6344
@@ -2944,7 +2944,7 @@ public abstract class RecentsView<ACTIVITY_TYPE extends StatefulActivity<STATE_T
}
mPendingAnimation.addEndListener(isSuccess -> {
if (isSuccess) {
if (LIVE_TILE.get()) {
if (LIVE_TILE.get() && tv.isRunningTask()) {
finishRecentsAnimation(false /* toRecents */, null);
onTaskLaunchAnimationEnd(true /* success */);
} else {