-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[Android] Fixed selection logic with header/footer in CollectionView #32215
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
base: main
Are you sure you want to change the base?
Conversation
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.
Pull Request Overview
This PR implements support for intercepting web resource requests in BlazorWebView across iOS, Windows, and Android platforms. The changes enable applications to customize or override resource loading behavior through a new WebResourceRequested event.
Key changes:
- Added a new public API
WebResourceRequestedevent toBlazorWebViewfor intercepting web resource requests - Implemented platform-specific request interception mechanisms for iOS, Windows, and Android
- Fixed iOS-specific issues including deprecated API usage and JavaScript text input panel handling
- Updated localization files across multiple languages
Reviewed Changes
Copilot reviewed 293 out of 3941 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| src/BlazorWebView/src/Maui/iOS/IOSWebViewManager.cs | Implemented custom text input panel handler and added request interception support |
| src/BlazorWebView/src/Maui/iOS/BlazorWebViewHandler.iOS.cs | Added webview scrolling configuration and request interception logic |
| src/BlazorWebView/src/Maui/Windows/WinUIWebViewManager.cs | Integrated request interception into Windows WebView2 request handling |
| src/BlazorWebView/src/Maui/PublicAPI/*/PublicAPI.Unshipped.txt | Documented new public API surface for WebResourceRequested event |
| src/BlazorWebView/src/Maui/IBlazorWebView.cs | Extended interface to support web request interception |
| src/BlazorWebView/src/Maui/BlazorWebView.cs | Implemented WebResourceRequested event and interface methods |
| src/BlazorWebView/src/Maui/Android/WebKitWebViewClient.cs | Refactored request handling to support interception |
| src/BlazorWebView/src/Maui/Android/BlazorWebViewHandler.Android.cs | Updated type references to use global namespace qualifiers |
| src/BlazorWebView/src/Maui/Android/BlazorWebChromeClient.cs | Updated type references to use global namespace qualifiers |
| src/BlazorWebView/samples/BlazorWpfApp/BlazorWpfApp.csproj | Updated target framework to include Windows SDK version |
| src/BlazorWebView/samples/BlazorWinFormsApp/BlazorWinFormsApp.csproj | Removed unnecessary IsTestProject property |
| src/BlazorWebView/src/Maui/Microsoft.AspNetCore.Components.WebView.Maui.csproj | Enabled unsafe blocks and removed unused file link |
| loc/**/templatestrings.json.lcl | Updated localization files with translations and metadata |
| loc/**/MauiGResources.resx.lcl | Added new localized error messages for XAML parsing |
| loc/**/ErrorMessages.resx.lcl | Updated localized error message translations |
| loc/**/StringResources.resx.lcl | Updated localized UI string translations |
Comments suppressed due to low confidence (1)
src/BlazorWebView/src/Maui/BlazorWebView.cs:1
- Corrected spelling of 'ReponseContentNotFound' to 'ResponseContentNotFound'.
using System;
|
Hey there @@kubaflo! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed. |
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
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.
This is the tests validating the fix?
| public class Issue21375 : _IssuesUITest |
Exactly, it is |
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
|
/rebase |
Adjusted SelectableItemsViewAdapter to correctly handle selection when header or footer templates are present. Updated Issue21375 test case to include header and footer templates.
e430d0b to
82c908a
Compare


Note
Are you waiting for the changes in this PR to be merged?
It would be very helpful if you could test the resulting artifacts from this PR and let us know in a comment if this change resolves your issue. Thank you!
Description of Change
Adjusted SelectableItemsViewAdapter to correctly handle selection when header or footer templates are present. Updated Issue21375 test case to include header and footer templates.
Issues Fixed
Fixes #32212
Regressing PR #29818