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

Commit 00496319 authored by Aaron Liu's avatar Aaron Liu Committed by Automerger Merge Worker
Browse files

Merge "Remove a11y noise for bouncer unlock" into udc-dev am: 4ee1f010

parents eb774923 4ee1f010
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -208,7 +208,7 @@ public class KeyguardMessageAreaController<T extends KeyguardMessageArea>
        @Override
        @Override
        public void run() {
        public void run() {
            final View host = mHost.get();
            final View host = mHost.get();
            if (host != null) {
            if (host != null && host.isVisibleToUser()) {
                host.announceForAccessibility(mTextToAnnounce);
                host.announceForAccessibility(mTextToAnnounce);
            }
            }
        }
        }
+1 −1
Original line number Original line Diff line number Diff line
@@ -326,7 +326,7 @@ public class LockIconViewController extends ViewController<LockIconView> impleme
        }
        }


        if (!Objects.equals(prevContentDescription, mView.getContentDescription())
        if (!Objects.equals(prevContentDescription, mView.getContentDescription())
                && mView.getContentDescription() != null) {
                && mView.getContentDescription() != null && mView.isVisibleToUser()) {
            mView.announceForAccessibility(mView.getContentDescription());
            mView.announceForAccessibility(mView.getContentDescription());
        }
        }
    }
    }