This repository has been archived by the owner on May 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[Android] Navigation dont wait initial pages to be loaded on AppCompat #4729
Labels
Comments
3 tasks
@kvpt If I open your repro and make these changes to |
@hartez You're right, I have made a more complex reproduction to test this case and forgot to test if the first reproduction case was still fixed, and indeed it's not the case. |
@hartez I fixed it, you can review it again. |
Duplicate of #3528 |
hartez
added a commit
that referenced
this issue
Jul 10, 2019
samhouts
added
the
in-progress
This issue has an associated pull request that may resolve it!
label
Oct 2, 2019
samhouts
added
a/navigation
and removed
in-progress
This issue has an associated pull request that may resolve it!
labels
Apr 15, 2020
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Description
If you want to navigate to another page in the OnStart method, auto login for exemple, and if you navigate to fast, the page will load before the MainPage and will be wipped by the MainPage loaded after.
The state of the navigation stack will be inconsistant and it will cause differents issues or crash like IndexOutOfRange.
The FormsApplicationActivity works as excepted.
Steps to Reproduce
await Current.MainPage.Navigation.PushAsync(new Page { Title = "New" });
Expected Behavior
The page displayed is the page loaded in OnStart
And if you go back it's your MainPage
Actual Behavior
The page displayed is the original page and the page loaded in OnStart is "phantom", if you press go back it throw an IndexOutOfRangeException.
The text was updated successfully, but these errors were encountered: