summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/BubbleTextView.java
diff options
context:
space:
mode:
authorWinson Chung <winsonc@google.com>2015-05-11 18:02:55 -0700
committerWinson Chung <winsonc@google.com>2015-05-12 01:03:49 +0000
commit44d0aacd5f44623ba87f1c8b3693d74df69d50e5 (patch)
tree4e7b5ebfdcf87ebf3e2636b01eed937ebcafec08 /src/com/android/launcher3/BubbleTextView.java
parent57ebefb5891255a23472473d5ec90b5247a334fc (diff)
downloadandroid_packages_apps_Trebuchet-44d0aacd5f44623ba87f1c8b3693d74df69d50e5.tar.gz
android_packages_apps_Trebuchet-44d0aacd5f44623ba87f1c8b3693d74df69d50e5.tar.bz2
android_packages_apps_Trebuchet-44d0aacd5f44623ba87f1c8b3693d74df69d50e5.zip
Fixing issue with font size.
Change-Id: I3f32840333f96ce49dfb915da3f335de0c0b022e
Diffstat (limited to 'src/com/android/launcher3/BubbleTextView.java')
-rw-r--r--src/com/android/launcher3/BubbleTextView.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/launcher3/BubbleTextView.java b/src/com/android/launcher3/BubbleTextView.java
index 009cc2ba5..46caf4ab9 100644
--- a/src/com/android/launcher3/BubbleTextView.java
+++ b/src/com/android/launcher3/BubbleTextView.java
@@ -100,9 +100,9 @@ public class BubbleTextView extends TextView {
int display = a.getInteger(R.styleable.BubbleTextView_iconDisplay, DISPLAY_WORKSPACE);
int defaultIconSize = grid.iconSizePx;
if (display == DISPLAY_WORKSPACE) {
- setTextSize(grid.iconTextSizePx);
+ setTextSize(TypedValue.COMPLEX_UNIT_PX, grid.iconTextSizePx);
} else if (display == DISPLAY_ALL_APPS) {
- setTextSize(grid.allAppsIconTextSizePx);
+ setTextSize(TypedValue.COMPLEX_UNIT_PX, grid.allAppsIconTextSizePx);
defaultIconSize = grid.allAppsIconSizePx;
}