Snap for 6639731 from 66c09a0c96 to sc-release

Change-Id: I479e182aaa9c1b5a84d660f2ccb261b7d4b4d117
This commit is contained in:
android-build-team Robot committed 2020-06-30 02:04:25 +00:00
commit 4bec1cd0bf
1 file changed
+6 -4
@@ -166,11 +166,13 @@ public class TaskThumbnailCache {
public void run() {
ThumbnailData thumbnail = ActivityManagerWrapper.getInstance().getTaskThumbnail(
key.id, lowResolution);
if (isCanceled()) {
// We don't call back to the provided callback in this case
return;
}
MAIN_EXECUTOR.execute(() -> {
if (isCanceled()) {
// We don't call back to the provided callback in this case
return;
}
mCache.put(key, thumbnail);
callback.accept(thumbnail);
onEnd();