-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Cast to a less derived type on TabbedPageManager #13689
Conversation
Thank you for your pull request. We are auto-formating your source code to follow our code guidelines. |
Thank you for your pull request. We are auto-formating your source code to follow our code guidelines. |
/backport to net7.0 |
Started backporting to net7.0: https://github.com/dotnet/maui/actions/runs/4439997678 |
@PureWeen backporting to net7.0 failed, the patch most likely resulted in conflicts: $ git am --3way --ignore-whitespace --keep-non-patch changes.patch
Applying: Cast to a less derived type on TabbedPageManager
Using index info to reconstruct a base tree...
M src/Controls/src/Core/Platform/Android/TabbedPageManager.cs
M src/Controls/tests/DeviceTests/Elements/TabbedPage/TabbedPageTests.Android.cs
M src/Controls/tests/DeviceTests/Elements/TabbedPage/TabbedPageTests.cs
Falling back to patching base and 3-way merge...
Auto-merging src/Controls/tests/DeviceTests/Elements/TabbedPage/TabbedPageTests.cs
CONFLICT (content): Merge conflict in src/Controls/tests/DeviceTests/Elements/TabbedPage/TabbedPageTests.cs
Auto-merging src/Controls/tests/DeviceTests/Elements/TabbedPage/TabbedPageTests.Android.cs
CONFLICT (content): Merge conflict in src/Controls/tests/DeviceTests/Elements/TabbedPage/TabbedPageTests.Android.cs
Auto-merging src/Controls/src/Core/Platform/Android/TabbedPageManager.cs
CONFLICT (content): Merge conflict in src/Controls/src/Core/Platform/Android/TabbedPageManager.cs
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0001 Cast to a less derived type on TabbedPageManager
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".
Error: The process '/usr/bin/git' failed with exit code 128 Please backport manually! |
@PureWeen an error occurred while backporting to net7.0, please check the run log for details! Error: git am failed, most likely due to a merge conflict. |
# Conflicts: # src/Controls/src/Core/Platform/Android/TabbedPageManager.cs # src/Controls/tests/DeviceTests/Elements/TabbedPage/TabbedPageTests.Android.cs # src/Controls/tests/DeviceTests/Elements/TabbedPage/TabbedPageTests.cs
…13998) * Cast to a less derived type on TabbedPageManager (#13689) # Conflicts: # src/Controls/src/Core/Platform/Android/TabbedPageManager.cs # src/Controls/tests/DeviceTests/Elements/TabbedPage/TabbedPageTests.Android.cs # src/Controls/tests/DeviceTests/Elements/TabbedPage/TabbedPageTests.cs * Update TabbedPageManager.cs * - fix namespaces for tests
# Conflicts: # src/Controls/src/Core/Platform/Android/TabbedPageManager.cs # src/Controls/tests/DeviceTests/Elements/TabbedPage/TabbedPageTests.Android.cs # src/Controls/tests/DeviceTests/Elements/TabbedPage/TabbedPageTests.cs
…anager (#13689) (#14068) * Cast to a less derived type on TabbedPageManager (#13689) # Conflicts: # src/Controls/src/Core/Platform/Android/TabbedPageManager.cs # src/Controls/tests/DeviceTests/Elements/TabbedPage/TabbedPageTests.Android.cs # src/Controls/tests/DeviceTests/Elements/TabbedPage/TabbedPageTests.cs * Update TabbedPageManager.cs * - fix namespaces for tests --------- Co-authored-by: Shane Neuville <shneuvil@microsoft.com>
Description of Change
Currently inside
TabbedPageManager
we are forcing theadapter
type to be of typeMultiPageFragmentStateAdapter
when we don't really need it to be. This is making it so it's not possible to swap out theAdapter
on the ViewPager.For .NET8 we'll make
TabbedPageManager
public so users can more easily swap theAdapter
, for now, this lets users apply changes themselves in .NET7. This PR takes a step in the right direction of makingTabbedPageManager
just generically work with anyFragmentStateAdapter