Fix flicker on first fold after launcher process started

If the device is folded after launcher is started, there will be a frame where unfold animation progress jump from 0 to 1.

This makes the start value of the animator 1.

Test: folded/unfolded after crashing launcher
Bug: 277215354
Change-Id: I3ae4c16b31a0cb045787e890327b1466f98c4218
This commit is contained in:
Nicolo' Mazzucato
2023-04-06 20:15:09 +00:00
parent 1c01456d2e
commit 61e5ff785d

View File

@@ -35,7 +35,7 @@ class UnfoldRemoteFilter(
private var inProgress = false
private var processedProgress: Float = 0.0f
private var processedProgress: Float = 1.0f
set(newProgress) {
if (inProgress) {
logCounter({ "$TAG#filtered_progress" }, newProgress)