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

Commit 6024e86e authored by Fabian Kozynski's avatar Fabian Kozynski
Browse files

Adds content description to icons

Icons in App Ops dialog now have a content description

Test: manual using Talkback
Change-Id: I987d5191e3a0b21ddb168591134459701a5a3ac7
Fixes: 122722302
parent b0e7c48c
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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