From 44d0aacd5f44623ba87f1c8b3693d74df69d50e5 Mon Sep 17 00:00:00 2001 From: Winson Chung Date: Mon, 11 May 2015 18:02:55 -0700 Subject: Fixing issue with font size. Change-Id: I3f32840333f96ce49dfb915da3f335de0c0b022e --- src/com/android/launcher3/BubbleTextView.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/com/android') 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; } -- cgit v1.2.3