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

Commit 33b5f783 authored by Jorim Jaggi's avatar Jorim Jaggi Committed by Android (Google) Code Review
Browse files

Merge "Do not dim the non-activated notifications on lockscreen" into lmp-dev

parents e51d6a3a 4538cee4
Loading
Loading
Loading
Loading
+2 −8
Original line number Diff line number Diff line
@@ -40,8 +40,6 @@ public class StackScrollAlgorithm {
    private static final int MAX_ITEMS_IN_BOTTOM_STACK = 3;
    private static final int MAX_ITEMS_IN_TOP_STACK = 3;

    /** When a child is activated, the other cards' alpha fade to this value. */
    private static final float ACTIVATED_INVERSE_ALPHA = 0.9f;
    public static final float DIMMED_SCALE = 0.95f;

    private int mPaddingBetweenElements;
@@ -270,15 +268,11 @@ public class StackScrollAlgorithm {
            childViewState.scale = !mScaleDimmed || !dimmed || isActivatedChild
                    ? 1.0f
                    : DIMMED_SCALE;
            if (dimmed && activatedChild != null) {
                if (!isActivatedChild) {
                    childViewState.alpha *= ACTIVATED_INVERSE_ALPHA;
                } else {
            if (dimmed && isActivatedChild) {
                childViewState.zTranslation += 2.0f * mZDistanceBetweenElements;
            }
        }
    }
    }

    /**
     * Handle the special state when views are being dragged