clear complete-status cache if flushing tasklist-caches. this is necessary for properly displaying pdv-recurrent tasks after a sync.

pull/14/head
Arne Jans 15 years ago committed by Tim Su
parent 02d5de51e8
commit 0b28171bbd

@ -532,6 +532,7 @@ public class TaskAdapter extends CursorAdapter implements Filterable {
* Called to tell the cache to be cleared * Called to tell the cache to be cleared
*/ */
public void flushCaches() { public void flushCaches() {
completedItems.clear();
extendedDetailManager.clearCache(); extendedDetailManager.clearCache();
decorationManager.clearCache(); decorationManager.clearCache();
taskActionManager.clearCache(); taskActionManager.clearCache();
@ -544,6 +545,7 @@ public class TaskAdapter extends CursorAdapter implements Filterable {
* Called to tell the cache to be cleared * Called to tell the cache to be cleared
*/ */
public void flushSpecific(long taskId) { public void flushSpecific(long taskId) {
completedItems.put(taskId, null);
extendedDetailManager.clearCache(taskId); extendedDetailManager.clearCache(taskId);
decorationManager.clearCache(taskId); decorationManager.clearCache(taskId);
taskActionManager.clearCache(taskId); taskActionManager.clearCache(taskId);

Loading…
Cancel
Save