Add footer preference into caption preferences
Add footer preference into caption preferences to tell users
that the setting doesn't support all apps.
Reference link of screenshot:
https://drive.google.com/file/d/1VzpWa4M-4HjlfjDNNqrEIKwo3v0y_f51/view?usp=sharing
Bug: 135888603
Test: Visual
Change-Id: I95e0aa301eba7343fbc798cc406c0242f4f4eb7e
Merged-In: I95e0aa301eba7343fbc798cc406c0242f4f4eb7e
(cherry picked from commit 8f4b8b9a744ff139bcc4ff1763c9fb5c8337280a)
diff --git a/res/values/strings.xml b/res/values/strings.xml
index 5878115..7301411 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -4959,6 +4959,8 @@
<string name="accessibility_daltonizer_master_switch_title">Use color correction</string>
<!-- Used in the Captions settings screen to control turning on/off the feature entirely -->
<string name="accessibility_caption_master_switch_title">Use captions</string>
+ <!-- Used in the Captions preference to tell users that the setting doesn't support all apps. [CHAR LIMIT=NONE] -->
+ <string name="accessibility_caption_preference_summary">Not all apps support this setting.</string>
<!-- Button text for the accessibility dialog continue to the next screen for hearing aid. [CHAR LIMIT=32] -->
<string name="accessibility_hearingaid_instruction_continue_button">Continue</string>
diff --git a/res/xml/captioning_settings.xml b/res/xml/captioning_settings.xml
index 56e0e2d..766d88f 100644
--- a/res/xml/captioning_settings.xml
+++ b/res/xml/captioning_settings.xml
@@ -88,4 +88,8 @@
android:title="@string/captioning_window_opacity" />
</PreferenceCategory>
+ <com.android.settingslib.widget.FooterPreference
+ android:title="@string/accessibility_caption_preference_summary"
+ android:selectable="false" />
+
</PreferenceScreen>