Fix Select mode problem with animation off

- Avoid calling resetTaskVisuals when entering Modal state with animation off, it should only be called when leaving Overview, to be consistent with animation on case
- Use a separate property to control alpha for modalness, to avoid being overridden by other transition

Fix: 320314839
Test: presubmit
Flag: ACONFIG com.android.launcher3.enable_overview_icon_menu TEAMFOOD
Change-Id: I12a35682e25c3a70bc263afdc90a7895d6c56f11
This commit is contained in:
Alex Chau
2024-02-06 13:04:51 +00:00
parent b3e03b5461
commit 55b8b43fef
5 changed files with 19 additions and 2 deletions
@@ -69,6 +69,7 @@ public final class RecentsViewStateController extends
super.setState(state);
if (state.overviewUi) {
mRecentsView.updateEmptyMessage();
} else {
mRecentsView.resetTaskVisuals();
}
setAlphas(PropertySetter.NO_ANIM_PROPERTY_SETTER, new StateAnimationConfig(), state);