diff --git a/src/com/android/launcher3/BubbleTextView.java b/src/com/android/launcher3/BubbleTextView.java index edbce1068e..3268008e5f 100644 --- a/src/com/android/launcher3/BubbleTextView.java +++ b/src/com/android/launcher3/BubbleTextView.java @@ -370,9 +370,7 @@ public class BubbleTextView extends TextView implements ItemInfoUpdateReceiver, @UiThread protected void applyIconAndLabel(ItemInfoWithIcon info) { - boolean useTheme = mDisplay == DISPLAY_WORKSPACE || mDisplay == DISPLAY_FOLDER - || mDisplay == DISPLAY_TASKBAR; - int flags = useTheme ? FLAG_THEMED : 0; + int flags = shouldUseTheme() ? FLAG_THEMED : 0; if (mHideBadge) { flags |= FLAG_NO_BADGE; } @@ -384,6 +382,11 @@ public class BubbleTextView extends TextView implements ItemInfoUpdateReceiver, applyLabel(info); } + protected boolean shouldUseTheme() { + return mDisplay == DISPLAY_WORKSPACE || mDisplay == DISPLAY_FOLDER + || mDisplay == DISPLAY_TASKBAR; + } + @UiThread private void applyLabel(ItemInfoWithIcon info) { setText(info.title);