Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sleushunou committed Jun 30, 2024
1 parent 74d4f32 commit 05f6060
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Softeq.XToolkit.WhiteLabel.Droid/FragmentBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace Softeq.XToolkit.WhiteLabel.Droid
public class FragmentBase<TViewModel> : Fragment, IBindable
where TViewModel : ViewModelBase
{
private IList<IDisposable> _commandsSubscriptions;
private IList<IDisposable> _commandsSubscriptions = new List<IDisposable>();

public List<Binding> Bindings { get; } = new List<Binding>();

Expand Down Expand Up @@ -73,7 +73,6 @@ protected virtual void RestoreViewModelIfNeeded(Bundle? savedInstanceState)

protected virtual void DoAttachBindings()
{
_commandsSubscriptions = new List<IDisposable>();
var commands = SetCommands();
if (commands != null)
{
Expand Down

0 comments on commit 05f6060

Please sign in to comment.