Merge "Remove a11y noise for bouncer unlock" into udc-dev am: 4ee1f0103d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23617628 Change-Id: I621526d6b63e6266f1fe33be0103a8512c13c665 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -208,7 +208,7 @@ public class KeyguardMessageAreaController<T extends KeyguardMessageArea>
|
||||
@Override
|
||||
public void run() {
|
||||
final View host = mHost.get();
|
||||
if (host != null) {
|
||||
if (host != null && host.isVisibleToUser()) {
|
||||
host.announceForAccessibility(mTextToAnnounce);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -326,7 +326,7 @@ public class LockIconViewController extends ViewController<LockIconView> impleme
|
||||
}
|
||||
|
||||
if (!Objects.equals(prevContentDescription, mView.getContentDescription())
|
||||
&& mView.getContentDescription() != null) {
|
||||
&& mView.getContentDescription() != null && mView.isVisibleToUser()) {
|
||||
mView.announceForAccessibility(mView.getContentDescription());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user