Update talkback text for device details gear button

Announce "Device name + Configure device detail. Double tap to activate"
instead of "Settings"

Flag: EXEMPT small fix
Bug: 379994439
Test: manual
Change-Id: I8a0d620c2aba0ada559ea3617535413bed8eee48
This commit is contained in:
Yiyi Shen
2024-12-19 15:11:48 +08:00
parent 0ca6d53458
commit 1219568e77

View File

@@ -338,6 +338,9 @@ public final class BluetoothDevicePreference extends GearPreference {
if (mCachedDevice.getBondState() == BluetoothDevice.BOND_BONDED) {
ImageView deviceDetails = (ImageView) view.findViewById(R.id.settings_button);
deviceDetails.setContentDescription(
getContext().getResources().getString(
R.string.device_detail_icon_content_description, getTitle()));
if (deviceDetails != null) {
deviceDetails.setOnClickListener(this);