From d356575bf3e2ddb24f5a217d95076c4c274a6768 Mon Sep 17 00:00:00 2001 From: Alex Baker Date: Tue, 28 Aug 2018 13:17:22 -0500 Subject: [PATCH] Fix activity leak --- .../main/java/com/todoroo/astrid/activity/TaskListFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/todoroo/astrid/activity/TaskListFragment.java b/app/src/main/java/com/todoroo/astrid/activity/TaskListFragment.java index e811a8519..b410da041 100644 --- a/app/src/main/java/com/todoroo/astrid/activity/TaskListFragment.java +++ b/app/src/main/java/com/todoroo/astrid/activity/TaskListFragment.java @@ -358,7 +358,7 @@ public class TaskListFragment extends InjectingFragment taskListViewModel .getTasks(filter, taskProperties()) .observe( - getActivity(), + this, list -> { if (list.isEmpty()) { swipeRefreshLayout.setVisibility(View.GONE);