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

Make CommitAllowingStateLoss the default for FragmentTransactions #527

Merged
merged 1 commit into from Nov 16, 2016

Conversation

hartez
Copy link
Contributor

@hartez hartez commented Nov 14, 2016

Description of Change

Proposing this as an alternative to PR 444

PR 444 is adding a Platform Specific to NavigationPage which allows the developer to disable the default Android state loss check when committing a fragment transaction.

The state loss check prevents unexpected behavior when restoring the state of fragments upon resuming an application. However, XF doesn't support fragment restoration at this time. So rather than add another Platform Specific which we have to maintain, we can simply change from Commit() to CommitAllowingStateLoss().

This PR also addresses a similar issue with MasterDetailPage, which also utilizes fragments (and thus transactions) when setting the master to detail to a NavigationPage or TabbedPage.

@adrianknight89
Copy link
Contributor

I'm okay with this in favor of the other PR.

@jassmith jassmith merged commit 243d9e0 into master Nov 16, 2016
@adrianknight89
Copy link
Contributor

Possibly fixes this too: https://bugzilla.xamarin.com/show_bug.cgi?id=47367

@adrianknight89
Copy link
Contributor

@adrianknight89
Copy link
Contributor

Another possibly related issue: https://bugzilla.xamarin.com/show_bug.cgi?id=42815

@adrianknight89
Copy link
Contributor

@shnaz
Copy link

shnaz commented Jan 11, 2017

Hey @adrianknight89, any idea when this fix gonna hit the road?

@adrianknight89
Copy link
Contributor

I'm not 100% sure, but I'd wait for 2.3.4-pre2. Hopefully later this month or early next month.

@stefandevo
Copy link

Can you confirm it is NOT released in 2.3.4-pre1 then?

@rmarinho
Copy link
Member

@stefandevo it was shipped in 2.3.4-pre1 , we were going to call it 2.3.4-pre2 but it was shipped last week as pre1

@owlstack
Copy link

What stable release version will this be in then? Thanks! I thought it would be in 2.3.3.180

@shnaz
Copy link

shnaz commented Jan 19, 2017

Yes please, our users are heavily affected by this bug.

@hartez hartez deleted the android-fragmenttransaction-commit branch May 16, 2017 16:50
@samhouts samhouts added this to the 2.3.4 milestone Jun 27, 2018
shyunMin pushed a commit to shyunMin/Xamarin.Forms that referenced this pull request Dec 11, 2020
* Fix CarouselView page size

* Fix CarouselView position update time
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

9 participants