Skip to content

[Android] Setup Frame with all of the missing Mapper methods #11804

Merged
rmarinho merged 1 commit intomainfrom
android_frame_fixes
Jan 2, 2023
Merged

[Android] Setup Frame with all of the missing Mapper methods #11804
rmarinho merged 1 commit intomainfrom
android_frame_fixes

Conversation

@PureWeen
Copy link
Member

@PureWeen PureWeen commented Dec 1, 2022

Description of Change

The AndroidBatchMapper is manually called on ViewHandler meaning if you have a Handler that just uses the ViewHandler.Mapper and doesn't use our base class then everything inside AndroidBatchMapper won't run. I have a different PR that fixes this across the board. This PR isolates the changes to Frame specifically to minimize the effect of this PR.

This PR also takes the Container code we have in ViewHandler and applies to Frame so that Frame can benefit from all the Container scenarios as well.

Issues Fixed

Fixes #10220
Fixes #10503
Fixes #10503
Fixes #8840

@Eilon Eilon added the legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor label Dec 2, 2022
@PureWeen PureWeen force-pushed the winui_frame_fixes branch 2 times, most recently from f7c2f31 to 1342129 Compare December 5, 2022 21:31
Base automatically changed from winui_frame_fixes to main December 19, 2022 18:47
@PureWeen PureWeen force-pushed the android_frame_fixes branch from 4aacd52 to 4930c9c Compare December 19, 2022 20:13
@PureWeen PureWeen force-pushed the android_frame_fixes branch from 4930c9c to 52ae931 Compare December 19, 2022 20:47
@PureWeen PureWeen marked this pull request as ready for review December 19, 2022 20:47
@PureWeen
Copy link
Member Author

/backport to net7.0

@github-actions
Copy link
Contributor

@github-actions
Copy link
Contributor

@PureWeen backporting to net7.0 failed, the patch most likely resulted in conflicts:

$ git am --3way --ignore-whitespace --keep-non-patch changes.patch

Applying: [Android] Fix Frame to call missing mapper methods
.git/rebase-apply/patch:21: trailing whitespace.
				// With NET8 we can move the BatchMapper call to the actual ViewHandler.Mapper. 
warning: 1 line adds whitespace errors.
Using index info to reconstruct a base tree...
M	src/Controls/src/Core/Compatibility/Handlers/Android/FrameRenderer.cs
A	src/Controls/tests/DeviceTests/Elements/Frame/FrameHandlerTest.cs
Falling back to patching base and 3-way merge...
CONFLICT (modify/delete): src/Controls/tests/DeviceTests/Elements/Frame/FrameHandlerTest.cs deleted in HEAD and modified in [Android] Fix Frame to call missing mapper methods. Version [Android] Fix Frame to call missing mapper methods of src/Controls/tests/DeviceTests/Elements/Frame/FrameHandlerTest.cs left in tree.
Auto-merging src/Controls/src/Core/Compatibility/Handlers/Android/FrameRenderer.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 [Android] Fix Frame to call missing mapper methods
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!

@github-actions
Copy link
Contributor

@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.

@PureWeen
Copy link
Member Author

/backport to net7.0

@github-actions
Copy link
Contributor

@github-actions github-actions bot locked and limited conversation to collaborators Dec 15, 2023
@samhouts samhouts added the fixed-in-8.0.0-preview.1.7762 Look for this fix in 8.0.0-preview.1.7762! label Aug 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

fixed-in-8.0.0-preview.1.7762 Look for this fix in 8.0.0-preview.1.7762! legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor platform/android

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Opacity not applied to BoxView and Frame Frame.Opacity has no Effect TranslationY does not work on Frame component

5 participants