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

Commit 1ae78c07 authored by Chris Craik's avatar Chris Craik Committed by Android Git Automerger
Browse files

am c2245e1a: Merge "Workaround fading edge incompatibility with alpha modulation" into klp-dev

* commit 'c2245e1a':
  Workaround fading edge incompatibility with alpha modulation
parents c8c943a9 c2245e1a
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -4870,8 +4870,10 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener

    @Override
    public boolean hasOverlappingRendering() {
        // horizontal fading edge causes SaveLayerAlpha, which doesn't support alpha modulation
        return ((getBackground() != null && getBackground().getCurrent() != null)
                || mText instanceof Spannable || hasSelection());
                || mText instanceof Spannable || hasSelection()
                || isHorizontalFadingEdgeEnabled());
    }

    /**