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

Commit 407d8d08 authored by Winson's avatar Winson
Browse files

Ensure that the front-most task never dims when scrolling the stack.

Change-Id: I370311b78203c079c4bbfa67753da13f91a15cbc
parent 3e874741
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -650,7 +650,11 @@ public class TaskStackLayoutAlgorithm {
            y += (mStackRect.top - mTaskRect.top);
            z = Math.max(mMinTranslationZ, Math.min(mMaxTranslationZ,
                    mMinTranslationZ + (p * (mMaxTranslationZ - mMinTranslationZ))));
            relP = unfocusedP;
            if (mNumStackTasks == 1) {
                relP = 1f;
            } else {
                relP = Math.min(mMaxScrollP, unfocusedP);
            }
        }

        // Fill out the transform