Fix ViewModelProvider initialization

pull/996/head
Alex Baker 5 years ago
parent 84f5df67cf
commit 537674c326

@ -125,7 +125,7 @@ public class NavigationDrawerFragment extends InjectingFragment {
}
});
if (item instanceof Filter) {
new ViewModelProvider(this).get(TaskListViewModel.class).setFilter((Filter) item);
new ViewModelProvider(getActivity()).get(TaskListViewModel.class).setFilter((Filter) item);
}
close();
}

Loading…
Cancel
Save