// Unattached views ignore this signal, and outline is recomputed in onAttachedToWindow()
if (mAttachInfo == null) return;
- final Outline outline = mAttachInfo.mTmpOutline;
- outline.setEmpty();
-
if (mOutlineProvider == null) {
// no provider, remove outline
mRenderNode.setOutline(null);
} else {
+ final Outline outline = mAttachInfo.mTmpOutline;
+ outline.setEmpty();
+ outline.setAlpha(1.0f);
+
mOutlineProvider.getOutline(this, outline);
mRenderNode.setOutline(outline);
}
if (background != null) {
background.getOutline(outline);
} else {
-
outline.setRect(0, 0, view.getWidth(), view.getHeight());
outline.setAlpha(0.0f);
}
* View's size changes, or if {@link View#invalidateOutline()} is called
* explicitly.
*
+ * The input outline is empty and has an alpha of <code>1.0f</code>.
+ *
* @param view The view building the outline.
* @param outline The empty outline to be populated.
*/