MvvmCross-AndroidSupport icon indicating copy to clipboard operation
MvvmCross-AndroidSupport copied to clipboard

#275 MvxCachingFragmentCompatActivity GetLastFragmentInfo() does not …

Open markverkiel opened this issue 9 years ago • 0 comments

…return the last added fragment.

  • Removed unnused usings
  • Removed double casting
  • Used .ToFragment() extension method.
  • Created _lastFragmentTag
  • Filling _lastFragmentTag within ShowFragment if Fragment is cacheable

This way GetLastFragmentInfo doesn't rely on SupportFragmentManager.Fragments ArrayList anymore.

After the first time that ShowFragment has been called, and a Cacheable fragment is displayed, _lastFragmentTag is filled with its last shown fragment tag.

markverkiel avatar Jul 19 '16 09:07 markverkiel