Skip to content
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] Fix ReturnType on Entry #17546

Merged
merged 1 commit into from Oct 4, 2023
Merged

[Android] Fix ReturnType on Entry #17546

merged 1 commit into from Oct 4, 2023

Conversation

jsuarezruiz
Copy link
Contributor

Description of Change

Fix ReturnType on Android Entry.

Issues Fixed

Fixes #17463

NOTE: It's marked as a regression from NET 7 but I can reproduce it in NET 8 as well. So I would add it to main and then backport it.

@jsuarezruiz jsuarezruiz added t/bug Something isn't working platform/android 🤖 control-entry Entry backport/suggested The PR author or issue review has suggested that the change should be backported. labels Sep 21, 2023
@jsuarezruiz jsuarezruiz requested a review from a team as a code owner September 21, 2023 13:50
@ghost ghost added the area/controls 🎮 Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor label Sep 21, 2023
@PureWeen PureWeen removed the backport/suggested The PR author or issue review has suggested that the change should be backported. label Sep 26, 2023
@@ -41,6 +41,7 @@ public override void SetVirtualView(IView view)
// TODO: NET8 issoto - Change the return type to MauiAppCompatEditText
protected override void ConnectHandler(AppCompatEditText platformView)
{
platformView.ViewAttachedToWindow += OnViewAttachedToWindow;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Curious to hear why set the return type on this event instead of the constructor?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think is just normal practice also if it gets reused you know the value is updated when being added

@rmarinho rmarinho merged commit a05a5a7 into main Oct 4, 2023
45 checks passed
@rmarinho rmarinho deleted the fix-17463 branch October 4, 2023 10:37
@github-actions github-actions bot locked and limited conversation to collaborators Dec 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area/controls 🎮 Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor control-entry Entry platform/android 🤖 t/bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[regression/7.0.0] [Android] Entry return type not rendering properly
4 participants