From 77940284eb2a1666382ea64a1bbe7cab33fa28b1 Mon Sep 17 00:00:00 2001 From: Steven Ng Date: Tue, 28 Sep 2021 16:37:21 +0100 Subject: [PATCH] Add a new string for widget configuration drop target Test: manual. See screenshot in b/201286923 Fix: 201286923 Change-Id: I5be4f723523befe359b922273d11f57fb9f0b3fd (cherry picked from commit 29f46c9628b09c4e061c5775c83a5824e91c1f90) --- res/values/strings.xml | 5 ++++- .../android/launcher3/widget/PendingAppWidgetHostView.java | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/res/values/strings.xml b/res/values/strings.xml index a6105ebe4a..d7a2d47e7c 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -200,8 +200,11 @@ Can\'t load widget + + Widget settings + - Tap to finish setup + Tap to finish setup This is a system app and can\'t be uninstalled. diff --git a/src/com/android/launcher3/widget/PendingAppWidgetHostView.java b/src/com/android/launcher3/widget/PendingAppWidgetHostView.java index 57a6d3fb07..b6bb6aa389 100644 --- a/src/com/android/launcher3/widget/PendingAppWidgetHostView.java +++ b/src/com/android/launcher3/widget/PendingAppWidgetHostView.java @@ -268,8 +268,8 @@ public class PendingAppWidgetHostView extends LauncherAppWidgetHostView if (availableWidth > 0) { // Recreate the setup text. mSetupTextLayout = new StaticLayout( - getResources().getText(R.string.gadget_setup_text), mPaint, availableWidth, - Layout.Alignment.ALIGN_CENTER, 1, 0, true); + getResources().getText(R.string.gadget_complete_setup_text), mPaint, + availableWidth, Layout.Alignment.ALIGN_CENTER, 1, 0, true); int textHeight = mSetupTextLayout.getHeight(); // Extra icon size due to the setting icon