You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner. It is now read-only.
I'm not sure if this is a bug or a misinterpretation, this is something that got me struggling for a while now.
Expected behavior
GetLastFragmentInfo() returning the last fragment that was added to it'sArrayList .
Actual behavior
FragmentManager.Fragments is an ArrayList and the indexes of this ArrayList change when a new fragment is added. However when a fragment is removed this ArrayList keeps it's indexes.
When a new fragment is added through the method ShowViewModel() the fragment is added where the index of the ArrayList is equal to null.
This means that the following line in GetLastFragmentInfo() does not return the last fragment add but the last fragment in the ArrayList:
var lastFragment = currentCacheableFragments.Last();