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:
@@ -338,6 +338,9 @@ public final class BluetoothDevicePreference extends GearPreference {
|
|||||||
|
|
||||||
if (mCachedDevice.getBondState() == BluetoothDevice.BOND_BONDED) {
|
if (mCachedDevice.getBondState() == BluetoothDevice.BOND_BONDED) {
|
||||||
ImageView deviceDetails = (ImageView) view.findViewById(R.id.settings_button);
|
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) {
|
if (deviceDetails != null) {
|
||||||
deviceDetails.setOnClickListener(this);
|
deviceDetails.setOnClickListener(this);
|
||||||
|
|||||||
Reference in New Issue
Block a user