Show and update preload icons when they are in a FolderIcon preview.

Bug: 62626549
Change-Id: Ie0ad06d0239dccb8d8388381ffe845c4bbc079d6
This commit is contained in:
Jon Miranda committed 2017-06-20 11:05:34 -07:00
1 parent 7e2e2aa80b
commit 2ef1ab4017
3 files changed
+24 -1

No files matched your search

@@ -180,6 +180,14 @@ public class FolderPagedView extends PagedView {
super.dispatchDraw(canvas);
}
public void onIconInvalidated(BubbleTextView icon) {
FolderIcon folderIcon = mFolder.mFolderIcon;
if (icon.getTag() instanceof ItemInfo
&& folderIcon.mPreviewVerifier.isItemInPreview(((ItemInfo) icon.getTag()).rank)) {
folderIcon.invalidate();
}
}
/**
* Binds items to the layout.
* @return list of items that could not be bound, probably because we hit the max size limit.