Record/pause toggle button and save button have no content description (TalkBack announces only "button")

Aperta
#469 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
android, kotlin

Direzione di ricerca

Start with fragment_recorder.xml and RecorderFragment, which the issue identifies as the layout and code that update the recording toggle. Check how the cancel button gets its content description and how getToggleButtonIcon() reflects recording state. Add descriptions that announce the toggle's current action and label the save button, then verify TalkBack announces them as expected. The reporter says a fix is ready and offers to open a PR, so coordinate before starting.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug needs triage
Checklist
  • I can reproduce the bug with the latest version given here.
  • I made sure that there are no existing issues - open or closed - to which I could contribute my information.
  • I made sure that there are no existing discussions - open or closed - to which I could contribute my information.
  • I have read the FAQs inside the app (Menu -> About -> FAQs) and my problem isn't listed.
  • I have taken the time to fill in all the required details. I understand that the bug report will be dismissed otherwise.
  • This issue contains only one bug.
  • I have read and understood the contribution guidelines.
Affected app version

1.7.5

Affected Android/Custom ROM version

Android 16 (stock Motorola ROM)

Affected device model

Motorola edge 60 neo

How did you install the app?

F-Droid / IzzyOnDroid

Steps to reproduce the bug
  1. Enable TalkBack.
  2. Open Voice Recorder and go to the "Recorder" tab.
  3. Move the TalkBack focus to the large round button at the bottom (start/pause recording).
  4. Start a recording and move the focus to the button on the right of it (save recording).
Expected behavior

TalkBack announces what each button does, e.g. "Start recording" / "Pause recording" / "Resume recording" for the toggle button (updated as the recording state changes) and "Save" for the save button, like it already does for the cancel button ("Cancel").

Actual behavior

TalkBack only says "Button" (unlabeled) for both. A screen reader user cannot tell whether the button will start, pause or resume a recording, or what the button next to it does.

Screenshots/Screen recordings

No response

Additional information

uiautomator dump confirms the toggle button has an empty content description:

ImageView id=org.fossify.voicerecorder:id/toggle_recording_button  text='' content-desc=''

In fragment_recorder.xml, cancel_recording_button has android:contentDescription="@string/cancel", but toggle_recording_button and save_recording_button have none, and RecorderFragment changes the toggle icon (getToggleButtonIcon()) without updating any description.

I have a fix ready (25 lines, 4 files): https://github.com/Lucas-Nunes2022/Voice-Recorder/compare/main...a11y-recorder-button-labels — I'll open a PR if this gets the help wanted label.

(Replaces #467, which was closed because it was not created through the issue form.)

Lingua principale
Kotlin
Stelle
1k
Fork
98
Merge medio
2g 15h
PR unite (30g)
10

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di FossifyOrg/Voice-Recorder

Tutte le issue di FossifyOrg/Voice-Recorder

Issue simili

Altre issue su Kotlin

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.