MvvmCross / MvvmCross-AndroidSupport

Android support library packages for MvvmCross: The .NET MVVM framework for cross-platform solutions.
http://mvvmcross.com
15 stars 0 forks source link

ShowFragment bug - if cache is empty - AddToBackStack flag does not work #289

Closed thefex closed 8 years ago

thefex commented 8 years ago

Fragment show do not respect "AddToBackStack" MvxFragmentAttribute flag if fragment is not already in cache. Therefore back press does not work on "first time back" for "standalone" Fragments.

This bug does not apply for some fragments like: ViewPager fragments as it seems that they are added to cache before "ShowFragment" call.

Steps to reproduce

  1. Create new class which inherit from MvxFragment with MvxFragmentAttribute applied (AddToBackStack=true)
  2. Make call to ShowViewModel<YourNewFragmentViewModel>()
  3. Press back button.

Version: 4.2.3

thefex commented 8 years ago

merged -> closed.