mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-03 17:36:49 +00:00
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
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user