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

Commit c9bd4a5f authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Add click listeners to the lock icon for a11y" into tm-dev

parents 64610198 59002e79
Loading
Loading
Loading
Loading
+17 −0
Original line number Diff line number Diff line
@@ -211,6 +211,23 @@ public class LockIconViewController extends ViewController<LockIconView> impleme
        mDownDetected = false;
        updateBurnInOffsets();
        updateVisibility();

        updateAccessibility();
    }

    private void updateAccessibility() {
        if (mAccessibilityManager.isTouchExplorationEnabled()) {
            mView.setOnClickListener(
                    new View.OnClickListener() {
                        @Override
                        public void onClick(View v) {
                            onLongPress();
                        }
                    }
            );
        } else {
            mView.setOnClickListener(null);
        }
    }

    @Override