Merge "Adds content description to icons"
This commit is contained in:
committed by
Android (Google) Code Review
commit
4ffbbbb8c8
@@ -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