Merge "Adds content description to icons"

This commit is contained in:
TreeHugger Robot
2019-01-11 22:23:39 +00:00
committed by Android (Google) Code Review

View File

@@ -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