summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Nicolo' Mazzucato <nicomazz@google.com> 2023-04-06 20:15:09 +0000
committer Nicolo' Mazzucato <nicomazz@google.com> 2023-04-06 20:16:41 +0000
commit61e5ff785d23dcb468ebabdc0ffcfa1b74220f94 (patch)
treedeccf6d6788cb238bb94b5583578c2ffae0fcb87
parent1c01456d2ef45a59f5d451c89cda1f86670216dc (diff)
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
-rw-r--r--packages/SystemUI/unfold/src/com/android/systemui/unfold/progress/UnfoldRemoteFilter.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/SystemUI/unfold/src/com/android/systemui/unfold/progress/UnfoldRemoteFilter.kt b/packages/SystemUI/unfold/src/com/android/systemui/unfold/progress/UnfoldRemoteFilter.kt
index 0b019d1285e3..30418883eaf8 100644
--- a/packages/SystemUI/unfold/src/com/android/systemui/unfold/progress/UnfoldRemoteFilter.kt
+++ b/packages/SystemUI/unfold/src/com/android/systemui/unfold/progress/UnfoldRemoteFilter.kt
@@ -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)