am 737f0b22: am 7201bf2b: Merge "Unify View alpha implies clipping behavior" into mnc-dev

* commit '737f0b22bec07297eea782ea2cb29b056e849efc':
  Unify View alpha implies clipping behavior
This commit is contained in:
Chris Craik
2015-04-29 19:42:49 +00:00
committed by Android Git Automerger

View File

@@ -15490,12 +15490,8 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
if (drawingWithRenderNode) {
renderNode.setAlpha(alpha * getAlpha() * getTransitionAlpha());
} else if (layerType == LAYER_TYPE_NONE) {
int layerFlags = Canvas.HAS_ALPHA_LAYER_SAVE_FLAG;
if ((parentFlags & ViewGroup.FLAG_CLIP_CHILDREN) != 0) {
layerFlags |= Canvas.CLIP_TO_LAYER_SAVE_FLAG;
}
canvas.saveLayerAlpha(sx, sy, sx + getWidth(), sy + getHeight(),
multipliedAlpha, layerFlags);
multipliedAlpha);
}
} else {
// Alpha is handled by the child directly, clobber the layer's alpha