Snap for 6639787 from 6f5d4bb8ab to rvc-release

Change-Id: Iab9d57c7125132bb67586b8bb373560a7b9ace4f
This commit is contained in:
android-build-team Robot
2020-06-30 01:14:47 +00:00
@@ -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();