diff --git a/res/values/strings.xml b/res/values/strings.xml index 8e5e04fb36c..13b7d05e81e 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -5672,6 +5672,8 @@ About hearing devices To find other hearing devices that aren’t supported by ASHA or LE Audio, tap Pair new device > See more devices + + To find other hearing devices that aren’t supported by ASHA or LE Audio, tap Pair new device then See more devices Pair hearing device diff --git a/src/com/android/settings/accessibility/HearingDeviceFooterPreferenceController.java b/src/com/android/settings/accessibility/HearingDeviceFooterPreferenceController.java index cd92448392a..2f532e9a06c 100644 --- a/src/com/android/settings/accessibility/HearingDeviceFooterPreferenceController.java +++ b/src/com/android/settings/accessibility/HearingDeviceFooterPreferenceController.java @@ -18,6 +18,9 @@ package com.android.settings.accessibility; import android.content.Context; +import androidx.annotation.NonNull; +import androidx.preference.PreferenceScreen; + import com.android.settings.R; /** Preference controller for footer in hearing device page. */ @@ -32,4 +35,17 @@ public class HearingDeviceFooterPreferenceController extends protected String getIntroductionTitle() { return mContext.getString(R.string.accessibility_hearing_device_about_title); } + + @Override + public void displayPreference(@NonNull PreferenceScreen screen) { + super.displayPreference(screen); + + final AccessibilityFooterPreference footerPreference = + screen.findPreference(getPreferenceKey()); + // Need to update contentDescription string to announce "than" rather than ">" + final String summaryTts = mContext.getString( + R.string.accessibility_hearing_device_footer_summary_tts); + final String contentDescription = getIntroductionTitle() + "\n\n" + summaryTts; + footerPreference.setContentDescription(contentDescription); + } }