From 867ff5f60cd2941a0b06d410da0d2665c209b6a3 Mon Sep 17 00:00:00 2001 From: Steven Ng Date: Mon, 22 Mar 2021 18:25:19 +0000 Subject: [PATCH] Update title of bottom widgets tray Only use the "app name" instead of "app name widgets" as title Remove "Touch & hold to move a widget" subtitle. Test: manual Bug: 179797520 Change-Id: I7a5954af73aa5b480096e93ade3520cef6c93f17 --- res/layout/widgets_bottom_sheet_content.xml | 10 ---------- res/values/strings.xml | 2 -- .../android/launcher3/widget/WidgetsBottomSheet.java | 3 +-- 3 files changed, 1 insertion(+), 14 deletions(-) diff --git a/res/layout/widgets_bottom_sheet_content.xml b/res/layout/widgets_bottom_sheet_content.xml index 916ff1baf7..a9d523ae57 100644 --- a/res/layout/widgets_bottom_sheet_content.xml +++ b/res/layout/widgets_bottom_sheet_content.xml @@ -29,16 +29,6 @@ android:textColor="?android:attr/textColorPrimary" android:textSize="24sp"/> - - %1$s waiting to install - - %1$s widgets Widgets list diff --git a/src/com/android/launcher3/widget/WidgetsBottomSheet.java b/src/com/android/launcher3/widget/WidgetsBottomSheet.java index 267f9f72c0..2fda86c89c 100644 --- a/src/com/android/launcher3/widget/WidgetsBottomSheet.java +++ b/src/com/android/launcher3/widget/WidgetsBottomSheet.java @@ -119,8 +119,7 @@ public class WidgetsBottomSheet extends BaseWidgetSheet implements Insettable { public void populateAndShow(ItemInfo itemInfo) { mOriginalItemInfo = itemInfo; - ((TextView) findViewById(R.id.title)).setText(getContext().getString( - R.string.widgets_bottom_sheet_title, mOriginalItemInfo.title)); + ((TextView) findViewById(R.id.title)).setText(mOriginalItemInfo.title); onWidgetsBound(); attachToContainer();