Add 'Live Caption' preference for hearing aids device in Device details page

Bug: 225117933
Test: make RunSettingsRoboTests ROBOTEST_FILTER=BluetoothDetailsRelatedToolsControllerTest
Change-Id: Ic607fa7d10aa2049ab0852a86a57dd1d5d1ac7df
This commit is contained in:
jasonwshsu
2022-03-22 23:00:15 +08:00
parent 82d3bb2b73
commit 384200a337
4 changed files with 138 additions and 0 deletions

View File

@@ -61,6 +61,18 @@
<PreferenceCategory
android:key="bluetooth_profiles"/>
<PreferenceCategory
android:key="bluetooth_related_tools"
android:title="@string/bluetooth_screen_related">
<Preference
android:key="live_caption"
android:icon="@drawable/ic_live_caption"
android:persistent="false"
android:summary="@string/live_caption_summary"
android:title="@string/live_caption_title"
settings:controller="com.android.settings.accessibility.LiveCaptionPreferenceController"/>
</PreferenceCategory>
<com.android.settingslib.widget.FooterPreference
android:key="device_details_footer"
android:selectable="false"