diff options
author | Jon Miranda <jonmiranda@google.com> | 2016-11-03 15:29:29 -0700 |
---|---|---|
committer | Jon Miranda <jonmiranda@google.com> | 2016-11-04 14:15:33 -0700 |
commit | bf7d8121ea41df6b920b7df064cbc02091780dd4 (patch) | |
tree | d485185ece64b09ec7c71a0b632b8c319567fa09 /src/com/android/launcher3/BubbleTextView.java | |
parent | 8f6ada9563a2f735fc14ff6f72daefaea417b5f0 (diff) | |
download | android_packages_apps_Trebuchet-bf7d8121ea41df6b920b7df064cbc02091780dd4.tar.gz android_packages_apps_Trebuchet-bf7d8121ea41df6b920b7df064cbc02091780dd4.tar.bz2 android_packages_apps_Trebuchet-bf7d8121ea41df6b920b7df064cbc02091780dd4.zip |
Scale down folder cells to fit within bounds if necessary.
The number of folder cols/rows are set in InvariantDeviceProfile.
Because of this, we may need to scale down the folder cells in
multi-window mode.
Bug: 32176631
Change-Id: I925d5ac9d29439c5d61cf089e7784065a8cb5ebd
Diffstat (limited to 'src/com/android/launcher3/BubbleTextView.java')
-rw-r--r-- | src/com/android/launcher3/BubbleTextView.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/com/android/launcher3/BubbleTextView.java b/src/com/android/launcher3/BubbleTextView.java index 7d693ec2b..bb4b2cec1 100644 --- a/src/com/android/launcher3/BubbleTextView.java +++ b/src/com/android/launcher3/BubbleTextView.java @@ -128,7 +128,9 @@ public class BubbleTextView extends TextView setCompoundDrawablePadding(grid.allAppsIconDrawablePaddingPx); defaultIconSize = grid.allAppsIconSizePx; } else if (display == DISPLAY_FOLDER) { + setTextSize(TypedValue.COMPLEX_UNIT_PX, grid.folderChildTextSizePx); setCompoundDrawablePadding(grid.folderChildDrawablePaddingPx); + defaultIconSize = grid.folderChildIconSizePx; } mCenterVertically = a.getBoolean(R.styleable.BubbleTextView_centerVertically, false); |