Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 85c8c467 authored by Tony's avatar Tony Committed by Tony Wickham
Browse files

Fix TaskView scale being 0

Before, we reset zoom scale to 1 but didn't reset curve scale. Thus,
if curve scale had never been set (i.e. we hadn't yet scrolled recents),
the task view scale would be 0.

Example problem:
1. Open Calculator or other app
2. Force stop launcher
3. Swipe up
The recents-scale-down animation was incorrect because the computed scale
was 0, and thus recents didn't scale down at all throughout the swipe.

Change-Id: I8dd3c73a231033fa633e8df2df3bf9a1c0a67263
parent 794a68e9
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -432,6 +432,7 @@ public class TaskView extends FrameLayout implements PageCallbacks, Reusable {
    }

    private void resetViewTransforms() {
        setCurveScale(1);
        setZoomScale(1);
        setTranslationX(0f);
        setTranslationY(0f);