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

Commit 1c9c717f authored by Selim Cinek's avatar Selim Cinek Committed by Android Git Automerger
Browse files

am f1187ac8: Merge "Added card elevation when card is clicked on the...

am f1187ac8: Merge "Added card elevation when card is clicked on the lockscreen" into lmp-preview-dev

* commit 'f1187ac8e8d2c8927caf322a12de8c32ee3f919f':
  Added card elevation when card is clicked on the lockscreen
parents 54f6e80d 32b5f7a0
Loading
Loading
Loading
Loading
+8 −3
Original line number Diff line number Diff line
@@ -228,11 +228,16 @@ public class StackScrollAlgorithm {
            View child = algorithmState.visibleChildren.get(i);
            StackScrollState.ViewState childViewState = resultState.getViewStateForView(child);
            childViewState.dimmed = dimmed;
            childViewState.scale = !dimmed || activatedChild == child
            boolean isActivatedChild = activatedChild == child;
            childViewState.scale = !dimmed || isActivatedChild
                    ? 1.0f
                    : DIMMED_SCALE;
            if (dimmed && activatedChild != null && child != activatedChild) {
            if (dimmed && activatedChild != null) {
                if (!isActivatedChild) {
                    childViewState.alpha *= ACTIVATED_INVERSE_ALPHA;
                } else {
                    childViewState.zTranslation += 2.0f * mZDistanceBetweenElements;
                }
            }
        }
    }