Merge branch 'fix/add_content_description' into 'develop'
Adding content description to Expand / Collapse dropdown button for talkback. See merge request android/mail/proton-mail-android!1263
This commit is contained in:
commit
08bebfcc31
|
@ -256,6 +256,9 @@ class MessageDetailsHeaderView @JvmOverloads constructor(
|
|||
} else {
|
||||
expandHeader()
|
||||
}
|
||||
it.contentDescription = context?.getString(
|
||||
if (isExpanded) R.string.expand_message_details else R.string.collapse_message_details
|
||||
) ?: ""
|
||||
isExpanded = isExpanded.not()
|
||||
}
|
||||
expandedHeaderGroup.isVisible = false
|
||||
|
|
|
@ -202,6 +202,7 @@
|
|||
android:padding="@dimen/message_details_header_chevron_icon_padding"
|
||||
app:srcCompat="@drawable/ic_proton_chevron_down"
|
||||
android:visibility="gone"
|
||||
android:contentDescription="@string/expand_message_details"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/timeDateTextView"
|
||||
app:tint="@color/icon_weak"
|
||||
|
|
|
@ -881,4 +881,7 @@
|
|||
<string name="details_show_history">Show history</string>
|
||||
<string name="could_not_complete_action">Could not complete the action</string>
|
||||
<string name="decryption_of_message_failed">Decryption error: decryption of this message\'s encrypted content failed.</string>
|
||||
|
||||
<string name="expand_message_details">Expand Message Details</string>
|
||||
<string name="collapse_message_details">Collapse Message Details</string>
|
||||
</resources>
|
||||
|
|
Loading…
Reference in New Issue