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

Commit d4ca6d1c authored by Derek Sollenberger's avatar Derek Sollenberger
Browse files

TextView setOverlappingRendering must be true when shadows are used.

The updates to the HWUI renderer now require that setOverlappingRendering be
set when shadows are used.  Without this change modifying the alpha of the
TextView will produce incorrect blending results.

Bug: 111381525
Test: Test app in bug
Change-Id: I523c5ef698e8db912dd2ef848eeeffb3465b990a
parent d955be72
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -6973,7 +6973,8 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
    public boolean hasOverlappingRendering() {
        // horizontal fading edge causes SaveLayerAlpha, which doesn't support alpha modulation
        return ((getBackground() != null && getBackground().getCurrent() != null)
                || mSpannable != null || hasSelection() || isHorizontalFadingEdgeEnabled());
                || mSpannable != null || hasSelection() || isHorizontalFadingEdgeEnabled()
                || mShadowColor != 0);
    }

    /**