From f50106c322a28be454e0fd88d0debdace594d13a Mon Sep 17 00:00:00 2001 From: Brandon Dayauon Date: Tue, 21 Mar 2023 23:39:14 -0700 Subject: [PATCH] Fix clipping in SearchResultBigIconRow Remove the compound drawable padding being set in bubbleTextView because this causes the clipping. This was originally set here horizontal layout, instead will set the correct compound drawable padding on the horizontal container itself specifically (in another CL) so it doesn't affect other views/layoutTypes that uses SearchResultBigIconRow bug: 274723319 test: Manual - before: https://screenshot.googleplex.com/C2G6UXRMUkCJsAk after: https://screenshot.googleplex.com/9R85bzfuiRiALqw Change-Id: Ifee3016663225bc922fce602a52ab9f0534d1ef9 --- src/com/android/launcher3/BubbleTextView.java | 1 - 1 file changed, 1 deletion(-) diff --git a/src/com/android/launcher3/BubbleTextView.java b/src/com/android/launcher3/BubbleTextView.java index 14f4b30625..8e1c27901d 100644 --- a/src/com/android/launcher3/BubbleTextView.java +++ b/src/com/android/launcher3/BubbleTextView.java @@ -220,7 +220,6 @@ public class BubbleTextView extends TextView implements ItemInfoUpdateReceiver, 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(