Fix app to folder icon animation.

- Needed to account for the preview bounds (similar to BubbleTextView icon
  bounds)
- Also needed to update the bitmap shift amount so that it is re-centered
- Moved ShiftedBitmapDrawable to its own class in graphics package

Bug: 123900446
Change-Id: Ifa9e3f688e55d017cf86a0285f5cdb1b014f01e6
This commit is contained in:
Jon Miranda
2019-03-04 20:16:18 -08:00
parent 34691cffe3
commit 69b35e0195
6 changed files with 104 additions and 40 deletions

View File

@@ -189,6 +189,10 @@ public class FolderIcon extends FrameLayout implements FolderListener {
return icon;
}
public void getPreviewBounds(Rect outBounds) {
mBackground.getBounds(outBounds);
}
public Folder getFolder() {
return mFolder;
}