Skip to content

Commit

Permalink
Fixed creating and loading an Activity VM and its lifecycle twice aft…
Browse files Browse the repository at this point in the history
…er restoring on Android (MvvmCross#4849)

Co-authored-by: Tomasz Cielecki <tomasz@ostebaronen.dk>
  • Loading branch information
entdark and Cheesebaron authored Apr 10, 2024
1 parent 93c8842 commit f52ce0b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public MvxAndroidViewsContainer(Context applicationContext)

if (Mvx.IoCProvider?.TryResolve(out IMvxViewModelLoader? viewModelLoader) == true && viewModelLoader != null)
{
viewModelLoader.LoadViewModel(viewModelRequest, savedState);
return viewModelLoader.LoadViewModel(viewModelRequest, savedState);
}

return null;
Expand Down

0 comments on commit f52ce0b

Please sign in to comment.