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

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

Merge "Don't use layers when fading between public/private layout" into lmp-dev

parents 0cf327da aa92ffb1
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -406,7 +406,6 @@ public class ExpandableNotificationRow extends ActivatableNotificationView {
        target.animate().cancel();
        source.animate()
                .alpha(0f)
                .withLayer()
                .setStartDelay(delay)
                .setDuration(duration)
                .withEndAction(new Runnable() {
@@ -417,7 +416,6 @@ public class ExpandableNotificationRow extends ActivatableNotificationView {
                });
        target.animate()
                .alpha(1f)
                .withLayer()
                .setStartDelay(delay)
                .setDuration(duration);
    }
+8 −0
Original line number Diff line number Diff line
@@ -243,6 +243,14 @@ public class NotificationContentView extends FrameLayout {
        }
    }

    @Override
    public boolean hasOverlappingRendering() {

        // This is not really true, but good enough when fading from the contracted to the expanded
        // layout, and saves us some layers.
        return false;
    }

    private static Paint createInvertPaint() {
        final Paint p = new Paint();
        final float[] invert = {