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` (dotnet#24990)
  • Loading branch information
albyrock87 authored Oct 11, 2024
1 parent fa2f80b commit be57365
Show file tree
Hide file tree
Showing 3 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
Binary file modified src/Core/src/maui.aar
Binary file not shown.

0 comments on commit be57365

Please sign in to comment.