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

* commit '87e127d5a8d095b58c0d433be31ba04ce31aae98':
  Workaround fading edge incompatibility with alpha modulation
This commit is contained in:
Chris Craik
2013-10-11 14:09:54 -07:00
committed by Android Git Automerger

View File

@@ -4874,8 +4874,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());
}
/**