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

Commit 87e127d5 authored by Chris Craik's avatar Chris Craik Committed by Android Git Automerger
Browse files

am 1ae78c07: am c2245e1a: Merge "Workaround fading edge incompatibility with...

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

* commit '1ae78c07':
  Workaround fading edge incompatibility with alpha modulation
parents 6346a928 1ae78c07
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());
    }

    /**