Snap for 6639731 from 66c09a0c96 to sc-release
Change-Id: I479e182aaa9c1b5a84d660f2ccb261b7d4b4d117
This commit is contained in:
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();
|
||||
|
||||
Reference in new issue
Block a user