Set KeyguardIndicationText to clickable=false

So a11y services don't mistakenly announce
"Double tap to activate" on a target that won't do anything.

Fixes: 187078434
Test: manual
Change-Id: I5b93eadcd190d8077bdb87ee57f9b9c5e6f8d6b3
This commit is contained in:
Beverly
2021-05-05 11:25:10 -04:00
parent 250374368b
commit 2348494de4

View File

@@ -125,6 +125,7 @@ public class KeyguardIndicationTextView extends TextView {
if (info != null) {
setTextColor(info.getTextColor());
setOnClickListener(info.getClickListener());
setClickable(info.getClickListener() != null);
final Drawable icon = info.getIcon();
if (icon != null) {
icon.setTint(getCurrentTextColor());