From 2348494de436e5c8db37ded89108ed96c627da3e Mon Sep 17 00:00:00 2001 From: Beverly Date: Wed, 5 May 2021 11:25:10 -0400 Subject: [PATCH] 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 --- .../systemui/statusbar/phone/KeyguardIndicationTextView.java | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardIndicationTextView.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardIndicationTextView.java index 5085e1cf9990c..d84bb908fe699 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardIndicationTextView.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardIndicationTextView.java @@ -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());