Fix issue with Overview thumbnails appearing blank in certain situations

This CL fixes an issue where canceling any Launcher animation by entering Quick Switch would cause Overview to appear with all thumbnail tiles blank.

The issue occurred because we recently added a reset() to Overview that triggered on all state transition animation cancels. This fixed some issues, but introduced this bug.

Fixed by tailoring the reset() to only fire on animation cancels within BaseRecentsView and FallbackRecentsView.

Fixes: 246232494
Fixes: 243471493
Test: Manual
Change-Id: I175a22d52597a63e164a6f3b9353c62b199b0712
This commit is contained in:
Jeremy Sim
2022-09-17 16:01:46 -07:00
parent ade8b9d753
commit 08a9bcac1f
5 changed files with 10 additions and 26 deletions
@@ -88,6 +88,11 @@ public abstract class BaseRecentsViewStateController<T extends RecentsView>
return;
}
setStateWithAnimationInternal(toState, config, builder);
builder.addEndListener(success -> {
if (!success) {
mRecentsView.reset();
}
});
}
/**