From 01ecf7624740fcb830c76073e5c8b0364fb79eae Mon Sep 17 00:00:00 2001 From: Yuchen Sun Date: Thu, 25 Jul 2024 06:40:26 +0000 Subject: [PATCH] Add content description to QR code image for talkback. - Rename string name for reuse purpose. Test: Visual Flag: EXEMPT bug fix Bug: 350603175 Change-Id: Id5b1383c9cf1c2509a621bb9b225e0efeb58ca7f --- res/layout-land/bluetooth_audio_streams_qr_code.xml | 2 +- res/layout/bluetooth_audio_streams_qr_code.xml | 2 +- res/values/strings.xml | 4 ++-- .../settings/wifi/dpp/WifiDppQrCodeGeneratorFragment.java | 1 + 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/res/layout-land/bluetooth_audio_streams_qr_code.xml b/res/layout-land/bluetooth_audio_streams_qr_code.xml index b35bc65f84f..17151979074 100644 --- a/res/layout-land/bluetooth_audio_streams_qr_code.xml +++ b/res/layout-land/bluetooth_audio_streams_qr_code.xml @@ -48,7 +48,7 @@ android:id="@+id/qrcode_view" android:layout_width="@dimen/qrcode_size" android:layout_height="@dimen/qrcode_size" - android:contentDescription="@string/audio_streams_qr_code_page_image_label" + android:contentDescription="@string/qr_code_content_description" android:focusable="true" /> Preview + + QR code Make smaller @@ -13760,8 +13762,6 @@ Scan an audio stream QR code to listen with %1$s Can\u0027t edit password while sharing. To change the password, first turn off audio sharing. - - QR code QR code scanner diff --git a/src/com/android/settings/wifi/dpp/WifiDppQrCodeGeneratorFragment.java b/src/com/android/settings/wifi/dpp/WifiDppQrCodeGeneratorFragment.java index 42a74dddc7f..40cf24d52eb 100644 --- a/src/com/android/settings/wifi/dpp/WifiDppQrCodeGeneratorFragment.java +++ b/src/com/android/settings/wifi/dpp/WifiDppQrCodeGeneratorFragment.java @@ -114,6 +114,7 @@ public class WifiDppQrCodeGeneratorFragment extends WifiDppQrCodeBaseFragment { super.onViewCreated(view, savedInstanceState); mQrCodeView = view.findViewById(R.id.qrcode_view); + mQrCodeView.setContentDescription(getString(R.string.qr_code_content_description)); final WifiNetworkConfig wifiNetworkConfig = getWifiNetworkConfigFromHostActivity(); if (wifiNetworkConfig.isHotspot()) {