From b1957cd6fb95b179a120657ad9be426c22c56897 Mon Sep 17 00:00:00 2001 From: Brandon Dayauon Date: Tue, 14 Mar 2023 13:27:30 -0700 Subject: [PATCH] Set textSize and compound drawable padding for mDisplay == DISPLAY_SEARCH_RESULT This is so it matches closely to all apps icons but the difference is that the icon size is 48dp. bug: 261047689 test: manual - https://screenshot.googleplex.com/83YwnfwSfR6CJRB and https://screenshot.googleplex.com/68Yqz9hk5NHETKK Change-Id: I381d9415d2a80a9d36291828a1a31d0c83fc395e --- src/com/android/launcher3/BubbleTextView.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/com/android/launcher3/BubbleTextView.java b/src/com/android/launcher3/BubbleTextView.java index 801b740ca1..d5163ca2b8 100644 --- a/src/com/android/launcher3/BubbleTextView.java +++ b/src/com/android/launcher3/BubbleTextView.java @@ -219,6 +219,8 @@ public class BubbleTextView extends TextView implements ItemInfoUpdateReceiver, setCompoundDrawablePadding(grid.folderChildDrawablePaddingPx); defaultIconSize = grid.folderChildIconSizePx; } else if (mDisplay == DISPLAY_SEARCH_RESULT) { + setTextSize(TypedValue.COMPLEX_UNIT_PX, grid.allAppsIconTextSizePx); + setCompoundDrawablePadding(grid.allAppsIconDrawablePaddingPx); defaultIconSize = getResources().getDimensionPixelSize(R.dimen.search_row_icon_size); } else if (mDisplay == DISPLAY_SEARCH_RESULT_SMALL) { defaultIconSize = getResources().getDimensionPixelSize(