Join GitHub today
Make CommitAllowingStateLoss the default for FragmentTransactions #527
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
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.
referenced this pull request
Nov 14, 2016
Nov 16, 2016
3 of 4 checks passed
Possibly fixes this too: https://bugzilla.xamarin.com/show_bug.cgi?id=47367
Another possibly related issue: https://bugzilla.xamarin.com/show_bug.cgi?id=42815