Change thumbnail/icon to get the image rather than updating it
Flag: EXEMPT no-op refactor Bug: 334826842 Test: existing screenshot tests Test: Manual - checked icon loading Change-Id: Ie1da708f911ba569d6464f338dc4efac92420268
This commit is contained in:
@@ -245,11 +245,20 @@ public final class KeyboardQuickSwitchController implements
|
||||
}
|
||||
|
||||
void updateThumbnailInBackground(Task task, Consumer<ThumbnailData> callback) {
|
||||
mModel.getThumbnailCache().updateThumbnailInBackground(task, callback);
|
||||
mModel.getThumbnailCache().getThumbnailInBackground(task,
|
||||
thumbnailData -> {
|
||||
task.thumbnail = thumbnailData;
|
||||
callback.accept(thumbnailData);
|
||||
});
|
||||
}
|
||||
|
||||
void updateIconInBackground(Task task, Consumer<Task> callback) {
|
||||
mModel.getIconCache().updateIconInBackground(task, callback);
|
||||
mModel.getIconCache().getIconInBackground(task, (icon, contentDescription, title) -> {
|
||||
task.icon = icon;
|
||||
task.titleDescription = contentDescription;
|
||||
task.title = title;
|
||||
callback.accept(task);
|
||||
});
|
||||
}
|
||||
|
||||
void onCloseComplete() {
|
||||
|
||||
Reference in New Issue
Block a user