Invalidate outline only if provider changes
Test: android.uirendering.cts.testclasses.ViewClippingTests Bug: 231054525 Change-Id: Ibeb4e4a0b44b894fb98748423903b4e544c3ccc3
This commit is contained in:
@@ -18674,8 +18674,10 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
|
||||
* @see #getOutlineProvider()
|
||||
*/
|
||||
public void setOutlineProvider(ViewOutlineProvider provider) {
|
||||
mOutlineProvider = provider;
|
||||
invalidateOutline();
|
||||
if (mOutlineProvider != provider) {
|
||||
mOutlineProvider = provider;
|
||||
invalidateOutline();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user