-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[Android] Fixed ScalingCanvas.SetBlur not working #28911
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Android] Fixed ScalingCanvas.SetBlur not working #28911
Conversation
Hey there @@NirmalKumarYuvaraj! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, just a pending reference snapshot on Windows for the added test. Can retarget to the inflight
branch?
public void CanvasShouldHonorBlur() | ||
{ | ||
App.WaitForElement("label"); | ||
VerifyScreenshot(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pending snapshot on Windows.
717a197
to
be43be9
Compare
* Fixed android blur issue * added issue link
* Fixed android blur issue * added issue link
* Fixed android blur issue * added issue link
* Fixed android blur issue * added issue link
### Description of Change ## .NET MAUI Release Notes - Inflight/Candidate ## What's Changed ### MAUI Product Fixes * Fix CarouselView layout SR6 regressions by @albyrock87 in #29035 * Revert "[Android] picker - focus/unfocus events (#28122)" by @PureWeen in https://github.com/dotnet/maui/pull/1fb5164929 * [Windows] Fixed the flyout content width not being set correctly after updating to WinUI SDK 1.7 by @Tamilarasan-Paranthaman in #28996 * [Android] picker - focus/unfocus events by @kubaflo in #28122 * [XC] add IRootObjectProvider by @StephaneDelcroix in #28310 * [iOS] Fix for the File.ContentType from MediaPicker not being in valid MIME format by @SyedAbdulAzeemSF4852 in #28842 * [Android] Fixed the Incorrect Text Color Applied to Selected Tab in TabbedPage by @Ahamed-Ali in #28844 * [iOS] Fix FlyoutPage does not respond to changes in the FlyoutLayoutBehavior property by @devanathan-vaithiyanathan in #28884 * [Android] Fixed ScalingCanvas.SetBlur not working by @NirmalKumarYuvaraj in #28911 * [iOS] - Resolved Proper Rendering of Dynamic Header/Footer Updates in CV2 by @prakashKannanSf3972 in #28641 * [iOS] Fixed the TargetInvocationException Occurs When Selecting Header/Footer After Changing ItemsLayout in CV2 by @Ahamed-Ali in #28890 * [Windows] - Fix Visual State Issue with Picker TextColor After Navigation by @prakashKannanSf3972 in #28746 ### Dependency Updates * [Windows] Upgrade to Windows App SDK 1.7 by @MartyIX in #28499 ### Testing * [Testing] Feature Matrix UITest Cases for CollectionView EmptyView Feature by @NafeelaNazhir in #28679 * Fixed Test case failure in PR 29037 - [2025/04/21] Candidate by @HarishKumarSF4517 in #29049 **Full Changelog**: main...inflight/candidate For more information about inflight process check https://github.com/dotnet/maui/wiki/Inflight-Branch-Process
This pull request addresses the issue of
ScalingCanvas.SetBlur
not working on Android, adds a corresponding test case, and implements the necessary interface changes.RootCause
The _blurrableCanvas is null at the time of updating the blur. As a result the blur is not updated to the PlatformCanvas.
Description of Change
src/Graphics/src/Graphics/Platforms/Android/PlatformCanvas.cs
: Implemented theIBlurrableCanvas
interface in thePlatformCanvas
class to support the blur functionality.Reference:
maui/src/Graphics/src/Graphics/Platforms/Windows/PlatformCanvas.cs
Lines 28 to 31 in 2cc5a76
Issues Fixed
Fixes #8632
Validated the behaviour in the following platforms
Output