Merge "Workaround fading edge incompatibility with alpha modulation" into klp-dev
This commit is contained in:
@@ -4870,8 +4870,10 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean hasOverlappingRendering() {
|
public boolean hasOverlappingRendering() {
|
||||||
|
// horizontal fading edge causes SaveLayerAlpha, which doesn't support alpha modulation
|
||||||
return ((getBackground() != null && getBackground().getCurrent() != null)
|
return ((getBackground() != null && getBackground().getCurrent() != null)
|
||||||
|| mText instanceof Spannable || hasSelection());
|
|| mText instanceof Spannable || hasSelection()
|
||||||
|
|| isHorizontalFadingEdgeEnabled());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user