mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 11:18:21 +00:00
Merge "Make DISPLAY_SEARCH_RESULT_SMALL not badged" into main
This commit is contained in:
committed by
Android (Google) Code Review
commit
39276d643b
@@ -386,10 +386,12 @@ public class BubbleTextView extends TextView implements ItemInfoUpdateReceiver,
|
||||
setTag(itemInfo);
|
||||
}
|
||||
|
||||
@VisibleForTesting
|
||||
@UiThread
|
||||
protected void applyIconAndLabel(ItemInfoWithIcon info) {
|
||||
public void applyIconAndLabel(ItemInfoWithIcon info) {
|
||||
int flags = shouldUseTheme() ? FLAG_THEMED : 0;
|
||||
if (mHideBadge) {
|
||||
// Remove badge on icons smaller than 48dp.
|
||||
if (mHideBadge || mDisplay == DISPLAY_SEARCH_RESULT_SMALL) {
|
||||
flags |= FLAG_NO_BADGE;
|
||||
}
|
||||
FastBitmapDrawable iconDrawable = info.newIcon(getContext(), flags);
|
||||
|
||||
Reference in New Issue
Block a user