From 2f8baab403445f2c79b22e4900af7d1b514e243e Mon Sep 17 00:00:00 2001 From: Jagrut Desai Date: Tue, 26 Mar 2024 11:29:35 -0700 Subject: [PATCH] Customize BubbleTextView for Taskbar Icon Size Test: Presubmit, manual Flag: NONE Bug: 322734668 Change-Id: I50503a45cdf43abed942a846c2517f49124c75e5 (cherry picked from commit 8fbdf51d184b2d4baf4b7caef70fd5ac43f3afe8) --- quickstep/res/layout/taskbar_all_apps_button.xml | 10 ++++------ quickstep/res/layout/taskbar_divider.xml | 11 +++++------ src/com/android/launcher3/BubbleTextView.java | 2 +- 3 files changed, 10 insertions(+), 13 deletions(-) diff --git a/quickstep/res/layout/taskbar_all_apps_button.xml b/quickstep/res/layout/taskbar_all_apps_button.xml index c50db2e24b..94596cba1b 100644 --- a/quickstep/res/layout/taskbar_all_apps_button.xml +++ b/quickstep/res/layout/taskbar_all_apps_button.xml @@ -1,5 +1,4 @@ - - - + android:contentDescription="@string/all_apps_button_label" /> diff --git a/quickstep/res/layout/taskbar_divider.xml b/quickstep/res/layout/taskbar_divider.xml index 0a92fa92db..330f85f40b 100644 --- a/quickstep/res/layout/taskbar_divider.xml +++ b/quickstep/res/layout/taskbar_divider.xml @@ -1,5 +1,4 @@ - - - \ No newline at end of file + android:backgroundTint="@android:color/transparent" + android:contentDescription="@string/taskbar_divider_a11y_title" /> \ No newline at end of file diff --git a/src/com/android/launcher3/BubbleTextView.java b/src/com/android/launcher3/BubbleTextView.java index 4ca20d69bc..43d121362b 100644 --- a/src/com/android/launcher3/BubbleTextView.java +++ b/src/com/android/launcher3/BubbleTextView.java @@ -237,7 +237,7 @@ public class BubbleTextView extends TextView implements ItemInfoUpdateReceiver, defaultIconSize = getResources().getDimensionPixelSize( R.dimen.search_row_small_icon_size); } else if (mDisplay == DISPLAY_TASKBAR) { - defaultIconSize = mDeviceProfile.iconSizePx; + defaultIconSize = mDeviceProfile.taskbarIconSize; } else { // widget_selection or shortcut_popup defaultIconSize = mDeviceProfile.iconSizePx;