diff --git a/app/src/main/java/org/tasks/ui/NavigationDrawerFragment.java b/app/src/main/java/org/tasks/ui/NavigationDrawerFragment.java index 7ee00b13a..7f990fca3 100644 --- a/app/src/main/java/org/tasks/ui/NavigationDrawerFragment.java +++ b/app/src/main/java/org/tasks/ui/NavigationDrawerFragment.java @@ -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(); }