Fix task icons sometimes not appearing in recents view

- Call setTaskIconVisible(true) at the end of the gesture regardless of `setCurrentTask`.
- Resets the icon visibility when RecentsView resets to make sure the bad state won't get stuck.

Fix: 332744660
Flag: EXEMPT bug fix
Test: Manual test on device
Change-Id: Ie8b86efa4892298f0071ad304a8c77698c306d6a
This commit is contained in:
Jordan Silva
2025-05-21 04:57:22 -07:00
parent e010d8f654
commit ea25b86ce1

View File

@@ -2758,6 +2758,7 @@ public abstract class RecentsView<
mAppliedTaskListChangeId = -1;
setFocusedTaskViewId(INVALID_TASK_ID);
mAnyTaskHasBeenDismissed = false;
setTaskIconVisible(true);
if (enableRefactorTaskThumbnail()) {
// TODO(b/353917593): RecentsView is never destroyed, so its dependencies need to
@@ -3014,6 +3015,7 @@ public abstract class RecentsView<
Log.d(TAG, "onGestureAnimationEnd - mEnableDrawingLiveTile: " + mEnableDrawingLiveTile);
setRunningTaskHidden(false);
startIconFadeInOnGestureComplete();
setTaskIconVisible(true);
animateActionsViewIn();
if (mEnableDrawingLiveTile) {