Tony Wickham 0606773905 Fix taskbar being empty
We set mIconAlignmentForResumedState in endGestureStateOverride(), but then we call applyState() which might aniamte mIAFRS to a different value. To avoid this, set it after applyState() instead.

Specific repro:
1. Open Calculator
2. Go to Overview
3. Dismiss Calculator
  3a. This calls endGestureStateOverride() because the running tile ends
  3b. Previously, we called mIAFRS.updateValue(1) but then applyState() animated it to 0 because we're still in Overview which is an unstashed state. Now the animation to 0 is before setting explicitly to 1.
4. Go home (this sets mIconAlignmentForLauncherState = 1)
5. Open Calculator again. Previously, mIAFRS was already 0 so animating to 0 was ignored. Now, mIAFRS starts at 1 (which is right since launcher is resumed).

Test: see above
Fixes: 210109500
Change-Id: I13f40908f8636291d63ef4b885ac9d08bbf4d393
2021-12-10 18:20:13 +00:00
2021-12-10 18:20:13 +00:00
2021-10-29 15:40:41 +00:00
2019-11-25 20:24:07 +09:00
2021-09-21 15:25:22 -07:00
2020-01-17 11:24:43 -08:00
S
Description
No description provided
698 MiB
0 Stars 1 Watchers 0 Forks
Languages
Java 55.4%
Kotlin 43.7%
JavaScript 0.3%
AIDL 0.2%
CSS 0.2%