am fd8e8aec: am edf92aec: am 7a250371: Set default outline alpha to 1.0f
* commit 'fd8e8aecccb20cf8a66a226d27e2100853e4b37c': Set default outline alpha to 1.0f
This commit is contained in:
@@ -10830,13 +10830,14 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
|
||||
// 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);
|
||||
}
|
||||
|
||||
@@ -37,7 +37,6 @@ public abstract class ViewOutlineProvider {
|
||||
if (background != null) {
|
||||
background.getOutline(outline);
|
||||
} else {
|
||||
|
||||
outline.setRect(0, 0, view.getWidth(), view.getHeight());
|
||||
outline.setAlpha(0.0f);
|
||||
}
|
||||
@@ -51,6 +50,8 @@ public abstract class ViewOutlineProvider {
|
||||
* 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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user