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

Fixes: System.InvalidOperationExceptionSequence contains no matching … #212

Closed ghost closed 8 years ago

ghost commented 8 years ago
System.InvalidOperationExceptionSequence contains no matching element

System.Linq.Enumerable.First<TSource>(IEnumerable<_> source, Func<_,_> predicate)
MvvmCross.Droid.Support.V7.AppCompat.MvxCachingFragmentCompatActivity.Close(IMvxViewModel viewModel)

This was happening to me when I try Close(this); in my view model.

martijn00 commented 8 years ago

Can you also fix this in the non-compat and fullfragging libs?

martijn00 commented 8 years ago

And i think that we could return false if frag is null, because then people can override the method, call base, and if false do their own thing.

martijn00 commented 8 years ago

Thanks!