Merge changes Ibb68252c,Ide20e07f,I5d2e2c70 into main

* changes:
  Add accessibility label for "QR code" scanner. Also added landscape mode.
  Add accessibility label for "QR code" image. Also added landscape mode.
  Add accessibility label for "QR code" button in Audio sharing page.
This commit is contained in:
Chelsea Hao
2024-07-23 02:52:11 +00:00
committed by Android (Google) Code Review
8 changed files with 150 additions and 3 deletions

View File

@@ -92,6 +92,8 @@ public class AudioSharingNamePreference extends ValidatedEditTextPreference {
shareButton.setVisibility(View.VISIBLE);
shareButton.setImageDrawable(getContext().getDrawable(R.drawable.ic_qrcode_24dp));
shareButton.setOnClickListener(unused -> launchAudioSharingQrCodeFragment());
shareButton.setContentDescription(
getContext().getString(R.string.audio_sharing_qrcode_button_label));
}
private void configureInvisibleStateForQrCodeIcon(ImageButton shareButton, View divider) {

View File

@@ -55,7 +55,7 @@ public class AudioStreamsQrCodeFragment extends InstrumentedFragment {
@Override
public final View onCreateView(
LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
return inflater.inflate(R.xml.bluetooth_audio_streams_qr_code, container, false);
return inflater.inflate(R.layout.bluetooth_audio_streams_qr_code, container, false);
}
@Override