Adds content description to icons
Icons in App Ops dialog now have a content description Test: manual using Talkback Change-Id: I987d5191e3a0b21ddb168591134459701a5a3ac7 Fixes: 122722302
This commit is contained in:
@@ -119,12 +119,13 @@ class OngoingPrivacyDialog constructor(
|
||||
|
||||
appName.text = app.applicationName
|
||||
if (showIcons) {
|
||||
dialogBuilder.generateIconsForApp(types).forEach {
|
||||
dialogBuilder.generateIconsForApp(types).forEachIndexed { index, it ->
|
||||
it.setBounds(0, 0, iconSize, iconSize)
|
||||
val image = ImageView(context).apply {
|
||||
imageTintList = ColorStateList.valueOf(iconColor)
|
||||
setImageDrawable(it)
|
||||
}
|
||||
image.contentDescription = types[index].getName(context)
|
||||
icons.addView(image, lp)
|
||||
}
|
||||
icons.visibility = View.VISIBLE
|
||||
|
||||
Reference in New Issue
Block a user