Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 43fc4bc4 authored by dakinola's avatar dakinola Committed by Daniel Akinola
Browse files

Add contentDescription to MediaProjection screen recording dialog

Talkback was only announcing "ON/OFF" and a text description of the switch, so adding contentDescription so now there will be a description of what the switch corresponds to.

Fix: 308372488
Test: Manual testing
Flag: None
Change-Id: I7e04697adeb137d7d92e3c5937f879ac542d39ee
parent 69f1c8e5
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -47,6 +47,7 @@
            android:layout_weight="0"
            android:layout_gravity="end"
            android:id="@+id/screenrecord_audio_switch"
            android:contentDescription="@string/screenrecord_audio_label"
            style="@style/ScreenRecord.Switch"
            android:importantForAccessibility="yes"/>
    </LinearLayout>
@@ -79,6 +80,7 @@
            android:minWidth="48dp"
            android:layout_height="48dp"
            android:id="@+id/screenrecord_taps_switch"
            android:contentDescription="@string/screenrecord_taps_label"
            style="@style/ScreenRecord.Switch"
            android:importantForAccessibility="yes"/>
    </LinearLayout>