Merge "Add click listeners to the lock icon for a11y" into tm-dev am: c9bd4a5ff9
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17244065 Change-Id: Ic5233ea9d9d0eabe27210d969a7c366533b35acb
This commit is contained in:
@@ -211,6 +211,23 @@ public class LockIconViewController extends ViewController<LockIconView> impleme
|
|||||||
mDownDetected = false;
|
mDownDetected = false;
|
||||||
updateBurnInOffsets();
|
updateBurnInOffsets();
|
||||||
updateVisibility();
|
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
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user