No need to clear the task actions cache when flushing caches--the requery will take care of clearing out invalid entries

pull/14/head
Sam Bosley 13 years ago
parent 6ab8402d13
commit edcf83db16

@ -758,6 +758,8 @@ public class TaskAdapter extends CursorAdapter implements Filterable {
getActionsForTask(ContextManager.getContext(), task, hasAttachments); getActionsForTask(ContextManager.getContext(), task, hasAttachments);
if (actions.size() > 0) if (actions.size() > 0)
taskActionLoader.put(task.getId(), actions.get(0)); taskActionLoader.put(task.getId(), actions.get(0));
else
taskActionLoader.remove(task.getId());
} }
} finally { } finally {
fetchCursor.close(); fetchCursor.close();
@ -849,7 +851,6 @@ public class TaskAdapter extends CursorAdapter implements Filterable {
completedItems.clear(); completedItems.clear();
decorationManager.clearCache(); decorationManager.clearCache();
taskDetailLoader.clear(); taskDetailLoader.clear();
taskActionLoader.clear();
startDetailThread(); startDetailThread();
startTaskActionsThread(); startTaskActionsThread();
} }

Loading…
Cancel
Save