From e640a9ea00ac02f73e4628973ab609813ce73e5a Mon Sep 17 00:00:00 2001 From: Brandon Dayauon Date: Fri, 3 Feb 2023 14:12:25 -0800 Subject: [PATCH] Make shortcuts on people row themed bug: 260112992 test: before: https://screenshot.googleplex.com/AVeT2GF94TGqYfn test: after: https://screenshot.googleplex.com/9d8dpDGfTQ8gnrb Change-Id: I3c4c237a231bff6e60b26d48a8811b8272a4ee63 --- src/com/android/launcher3/BubbleTextView.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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);