summaryrefslogtreecommitdiffstats
path: root/quickstep/recents_ui_overrides/src/com/android/quickstep
diff options
context:
space:
mode:
authorWinson Chung <winsonc@google.com>2019-06-26 18:25:58 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2019-06-26 18:25:58 +0000
commitfad3823420fc0741a53f078552fbe35e2f8b4599 (patch)
treefd28558a81d91bc9a9ecda9474eb5913ff523df9 /quickstep/recents_ui_overrides/src/com/android/quickstep
parent3a6eedc61b6d1701ac4aee4e46a4d9ed361406c7 (diff)
parentdf9fc63e8c0dd75af1bd1d50d090f9821fd62fc6 (diff)
downloadandroid_packages_apps_Trebuchet-fad3823420fc0741a53f078552fbe35e2f8b4599.tar.gz
android_packages_apps_Trebuchet-fad3823420fc0741a53f078552fbe35e2f8b4599.tar.bz2
android_packages_apps_Trebuchet-fad3823420fc0741a53f078552fbe35e2f8b4599.zip
Merge "Clean up some more refs to thumbnail data" into ub-launcher3-qt-dev
Diffstat (limited to 'quickstep/recents_ui_overrides/src/com/android/quickstep')
-rw-r--r--quickstep/recents_ui_overrides/src/com/android/quickstep/views/TaskView.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/quickstep/recents_ui_overrides/src/com/android/quickstep/views/TaskView.java b/quickstep/recents_ui_overrides/src/com/android/quickstep/views/TaskView.java
index e7e41893c..b26fdce92 100644
--- a/quickstep/recents_ui_overrides/src/com/android/quickstep/views/TaskView.java
+++ b/quickstep/recents_ui_overrides/src/com/android/quickstep/views/TaskView.java
@@ -368,6 +368,9 @@ public class TaskView extends FrameLayout implements PageCallbacks, Reusable {
} else {
mSnapshotView.setThumbnail(null, null);
setIcon(null);
+ // Reset the task thumbnail reference as well (it will be fetched from the cache or
+ // reloaded next time we need it)
+ mTask.thumbnail = null;
}
}
@@ -488,9 +491,6 @@ public class TaskView extends FrameLayout implements PageCallbacks, Reusable {
mSnapshotView.setThumbnail(mTask, null);
setOverlayEnabled(false);
onTaskListVisibilityChanged(false);
- if (mTask != null) {
- mTask.thumbnail = null;
- }
}
@Override