diff --git a/src/Core/AndroidNative/maui/src/main/java/com/microsoft/maui/PlatformContentViewGroup.java b/src/Core/AndroidNative/maui/src/main/java/com/microsoft/maui/PlatformContentViewGroup.java index 7a14d0aa6e93..4c50e26d0939 100644 --- a/src/Core/AndroidNative/maui/src/main/java/com/microsoft/maui/PlatformContentViewGroup.java +++ b/src/Core/AndroidNative/maui/src/main/java/com/microsoft/maui/PlatformContentViewGroup.java @@ -31,8 +31,10 @@ public PlatformContentViewGroup(Context context, AttributeSet attrs, int defStyl * @param hasClip */ protected final void setHasClip(boolean hasClip) { - this.hasClip = hasClip; - postInvalidate(); + if (this.hasClip != hasClip) { + this.hasClip = hasClip; + postInvalidate(); + } } @Override diff --git a/src/Core/AndroidNative/maui/src/main/java/com/microsoft/maui/PlatformWrapperView.java b/src/Core/AndroidNative/maui/src/main/java/com/microsoft/maui/PlatformWrapperView.java index 78641e9c668b..b4534520aff9 100644 --- a/src/Core/AndroidNative/maui/src/main/java/com/microsoft/maui/PlatformWrapperView.java +++ b/src/Core/AndroidNative/maui/src/main/java/com/microsoft/maui/PlatformWrapperView.java @@ -23,8 +23,10 @@ public PlatformWrapperView(Context context) { * @param hasShadow */ protected final void setHasShadow(boolean hasShadow) { - this.hasShadow = hasShadow; - postInvalidate(); + if (this.hasShadow != hasShadow) { + this.hasShadow = hasShadow; + postInvalidate(); + } } @Override diff --git a/src/Core/src/maui.aar b/src/Core/src/maui.aar index e922bb417ce8..ce688c7d1726 100644 Binary files a/src/Core/src/maui.aar and b/src/Core/src/maui.aar differ