Merge "AOD: Fix LockIcon click handler" into oc-mr1-dev am: a528ee13bd

am: 44931559d0

Change-Id: I321cd6a2f15db0f390e0243cd7f28a029b074639
This commit is contained in:
Adrian Roos
2017-08-18 17:56:33 +00:00
committed by android-build-merger

View File

@@ -207,9 +207,9 @@ public class LockIcon extends KeyguardAffordanceView implements OnUserInfoChange
if (mAccessibilityController == null) {
return;
}
boolean clickToUnlock = mAccessibilityController.isTouchExplorationEnabled();
boolean clickToUnlock = mAccessibilityController.isAccessibilityEnabled();
boolean clickToForceLock = mUnlockMethodCache.isTrustManaged()
&& !mAccessibilityController.isAccessibilityEnabled();
&& !clickToUnlock;
boolean longClickToForceLock = mUnlockMethodCache.isTrustManaged()
&& !clickToForceLock;
setClickable(clickToForceLock || clickToUnlock);