From 5159d60f37cdaf9279bcca58adadd3d3c076c0e9 Mon Sep 17 00:00:00 2001 From: jasonwshsu Date: Tue, 6 Aug 2024 14:35:21 +0800 Subject: Update string to more precisely name Add prefix to the string name, Live Caption, indicating where it's used. Bug: 345692996 Test: build pass & check hearing devices dialog string is expected Flag: EXEMPT resource only update Change-Id: Ic5a00fa439c7eb66c05f772cc08c11d611c61bb4 --- packages/SystemUI/res/values/strings.xml | 4 ++-- .../accessibility/hearingaid/HearingDevicesDialogDelegate.java | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/SystemUI/res/values/strings.xml b/packages/SystemUI/res/values/strings.xml index 4bc46927571c..a3b701944200 100644 --- a/packages/SystemUI/res/values/strings.xml +++ b/packages/SystemUI/res/values/strings.xml @@ -971,8 +971,8 @@ Couldn\'t update preset Preset - - Live Caption + + Live Caption Unblock device microphone? diff --git a/packages/SystemUI/src/com/android/systemui/accessibility/hearingaid/HearingDevicesDialogDelegate.java b/packages/SystemUI/src/com/android/systemui/accessibility/hearingaid/HearingDevicesDialogDelegate.java index 083f1db07886..b6fe0df5a514 100644 --- a/packages/SystemUI/src/com/android/systemui/accessibility/hearingaid/HearingDevicesDialogDelegate.java +++ b/packages/SystemUI/src/com/android/systemui/accessibility/hearingaid/HearingDevicesDialogDelegate.java @@ -499,7 +499,8 @@ public class HearingDevicesDialogDelegate implements SystemUIDialog.Delegate, final List resolved = packageManager.queryIntentActivities(LIVE_CAPTION_INTENT, /* flags= */ 0); if (!resolved.isEmpty()) { - return new ToolItem(context.getString(R.string.live_caption_title), + return new ToolItem( + context.getString(R.string.quick_settings_hearing_devices_live_caption_title), context.getDrawable(R.drawable.ic_volume_odi_captions), LIVE_CAPTION_INTENT); } -- cgit v1.2.3-59-g8ed1b