Skip to content

Commit

Permalink
Revert dotnet#24222 and simply use invalidate instead of `postInval…
Browse files Browse the repository at this point in the history
…idate`
  • Loading branch information
albyrock87 committed Sep 29, 2024
1 parent 68524c8 commit bd363ca
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,12 @@ public PlatformContentViewGroup(Context context, AttributeSet attrs, int defStyl

/**
* Set by C#, determining if we need to call getClipPath()
* Intentionally invalidates the view in case clip changed
* @param hasClip
*/
protected final void setHasClip(boolean hasClip) {
if (this.hasClip != hasClip) {
this.hasClip = hasClip;
postInvalidate();
}
this.hasClip = hasClip;
invalidate();
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,12 @@ public PlatformWrapperView(Context context) {

/**
* Set by C#, determining if we need to call drawShadow()
* Intentionally invalidates the view in case shadow definition changed
* @param hasShadow
*/
protected final void setHasShadow(boolean hasShadow) {
if (this.hasShadow != hasShadow) {
this.hasShadow = hasShadow;
postInvalidate();
}
this.hasShadow = hasShadow;
invalidate();
}

@Override
Expand Down

0 comments on commit bd363ca

Please sign in to comment.