Preemptively clear the thumbnail cache as tasks are removed

- Also reset the task thumbnail as the task views are recycled

Bug: 132309376

Change-Id: Ic2cc846e451b6b59ae76326930cb4b85627e95c4
This commit is contained in:
Winson Chung committed 2019-05-13 16:22:10 -07:00
1 parent 5d5db96bb8
commit cb554473c7
4 files changed
+29

No files matched your search

@@ -166,6 +166,12 @@ public class RecentsModel extends TaskStackChangeListener {
}
}
@Override
public void onTaskRemoved(int taskId) {
Task.TaskKey dummyKey = new Task.TaskKey(taskId, 0, null, null, 0, 0);
mThumbnailCache.remove(dummyKey);
}
public void setSystemUiProxy(ISystemUiProxy systemUiProxy) {
mSystemUiProxy = systemUiProxy;
}