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

Commit 9317f869 authored by Winson's avatar Winson Committed by Winson Chung
Browse files

Fix crash when trying to use uninitialized layout.

Bug: 26453007
Change-Id: I006cf2f622b267163230eae4a07ef676c805f5c3
parent b34f48ff
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -751,6 +751,11 @@ public class TaskStackLayoutAlgorithm {
     * Updates the current transforms that would put a TaskView at the front and back of the stack.
     */
    private void updateFrontBackTransforms() {
        // Return early if we have not yet initialized
        if (mStackRect.isEmpty()) {
            return;
        }

        float min = mUnfocusedRange.relativeMin +
                mFocusState * (mFocusedRange.relativeMin - mUnfocusedRange.relativeMin);
        float max = mUnfocusedRange.relativeMax +