diff options
author | Sunny Goyal <sunnygoyal@google.com> | 2017-06-22 09:53:59 -0700 |
---|---|---|
committer | Sunny Goyal <sunnygoyal@google.com> | 2017-06-22 10:25:43 -0700 |
commit | 828b11e5a934af781f620620dd20d312defa49b8 (patch) | |
tree | 1796b97550999a0e435add39fd49a76f52685278 /src/com/android/launcher3/folder/StackFolderIconLayoutRule.java | |
parent | 0d52bca39e23af789217869fc19fa719b063475f (diff) | |
download | android_packages_apps_Trebuchet-828b11e5a934af781f620620dd20d312defa49b8.tar.gz android_packages_apps_Trebuchet-828b11e5a934af781f620620dd20d312defa49b8.tar.bz2 android_packages_apps_Trebuchet-828b11e5a934af781f620620dd20d312defa49b8.zip |
Setting the callback for previewItems to folderIcon. This allows the FolderIcon to get updated
without going through the child'draw pass.
Also simplifying the draw code for the FolderIcon to remove any cycling invalidate calls
Bug: 62900800
Change-Id: I17009a5347a1c3c35426313ac759e0240ce6a395
Diffstat (limited to 'src/com/android/launcher3/folder/StackFolderIconLayoutRule.java')
-rw-r--r-- | src/com/android/launcher3/folder/StackFolderIconLayoutRule.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/launcher3/folder/StackFolderIconLayoutRule.java b/src/com/android/launcher3/folder/StackFolderIconLayoutRule.java index 12bca5fdf..1ece27831 100644 --- a/src/com/android/launcher3/folder/StackFolderIconLayoutRule.java +++ b/src/com/android/launcher3/folder/StackFolderIconLayoutRule.java @@ -35,7 +35,7 @@ public class StackFolderIconLayoutRule implements FolderIcon.PreviewLayoutRule { private float mMaxPerspectiveShift; @Override - public void init(int availableSpace, int intrinsicIconSize, boolean rtl) { + public void init(int availableSpace, float intrinsicIconSize, boolean rtl) { mAvailableSpaceInPreview = availableSpace; // cos(45) = 0.707 + ~= 0.1) = 0.8f |