Merge "Add click listeners to the lock icon for a11y" into tm-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
c9bd4a5ff9
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user