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

Bug: 62626549
Change-Id: Ie0ad06d0239dccb8d8388381ffe845c4bbc079d6
This commit is contained in:
Jon Miranda
2017-06-20 10:42:04 -07:00
parent 7e2e2aa80b
commit 2ef1ab4017
3 changed files with 24 additions and 1 deletions

View File

@@ -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.