diff --git a/Softeq.XToolkit.WhiteLabel.Droid/FragmentBase.cs b/Softeq.XToolkit.WhiteLabel.Droid/FragmentBase.cs index 2d3a680e..3d627e9c 100644 --- a/Softeq.XToolkit.WhiteLabel.Droid/FragmentBase.cs +++ b/Softeq.XToolkit.WhiteLabel.Droid/FragmentBase.cs @@ -16,7 +16,7 @@ namespace Softeq.XToolkit.WhiteLabel.Droid public class FragmentBase : Fragment, IBindable where TViewModel : ViewModelBase { - private IList _commandsSubscriptions; + private IList _commandsSubscriptions = new List(); public List Bindings { get; } = new List(); @@ -73,7 +73,6 @@ protected virtual void RestoreViewModelIfNeeded(Bundle? savedInstanceState) protected virtual void DoAttachBindings() { - _commandsSubscriptions = new List(); var commands = SetCommands(); if (commands != null) {