commit | b1957cd6fb95b179a120657ad9be426c22c56897 | [log] [tgz] |
---|---|---|
author | Brandon Dayauon <brdayauon@google.com> | Tue Mar 14 13:27:30 2023 -0700 |
committer | Brandon Dayauon <brdayauon@google.com> | Tue Mar 14 13:27:30 2023 -0700 |
tree | f270c5256b45d8edd373ca6cec1a2f3fed0de206 | |
parent | 20a343e740cae997a8fcfed037ad1271ea0c9745 [diff] [blame] |
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
diff --git a/src/com/android/launcher3/BubbleTextView.java b/src/com/android/launcher3/BubbleTextView.java index 801b740..d5163ca 100644 --- a/src/com/android/launcher3/BubbleTextView.java +++ b/src/com/android/launcher3/BubbleTextView.java
@@ -219,6 +219,8 @@ 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(