Loading packages/SystemUI/src/com/android/keyguard/LockIconViewController.java +18 −16 Original line number Diff line number Diff line Loading @@ -212,19 +212,14 @@ public class LockIconViewController extends ViewController<LockIconView> impleme updateBurnInOffsets(); updateVisibility(); mAccessibilityManager.addTouchExplorationStateChangeListener( mTouchExplorationStateChangeListener); updateAccessibility(); } private void updateAccessibility() { if (mAccessibilityManager.isTouchExplorationEnabled()) { mView.setOnClickListener( new View.OnClickListener() { @Override public void onClick(View v) { onLongPress(); } } ); mView.setOnClickListener(mA11yClickListener); } else { mView.setOnClickListener(null); } Loading @@ -242,6 +237,9 @@ public class LockIconViewController extends ViewController<LockIconView> impleme mCancelDelayedUpdateVisibilityRunnable.run(); mCancelDelayedUpdateVisibilityRunnable = null; } mAccessibilityManager.removeTouchExplorationStateChangeListener( mTouchExplorationStateChangeListener); } public float getTop() { Loading @@ -267,7 +265,6 @@ public class LockIconViewController extends ViewController<LockIconView> impleme return; } boolean wasShowingUnlock = mShowUnlockIcon; boolean wasShowingFpIcon = mUdfpsEnrolled && !mShowUnlockIcon && !mShowLockIcon && !mShowAodUnlockedIcon && !mShowAodLockIcon; mShowLockIcon = !mCanDismissLockScreen && !mUserUnlockedWithBiometric && isLockScreen() Loading Loading @@ -702,6 +699,14 @@ public class LockIconViewController extends ViewController<LockIconView> impleme mView.setAlpha(alpha); } private void updateUdfpsConfig() { // must be called from the main thread since it may update the views mExecutor.execute(() -> { updateIsUdfpsEnrolled(); updateConfiguration(); }); } private final AuthController.Callback mAuthControllerCallback = new AuthController.Callback() { @Override public void onAllAuthenticatorsRegistered() { Loading @@ -714,11 +719,8 @@ public class LockIconViewController extends ViewController<LockIconView> impleme } }; private void updateUdfpsConfig() { // must be called from the main thread since it may update the views mExecutor.execute(() -> { updateIsUdfpsEnrolled(); updateConfiguration(); }); } private final View.OnClickListener mA11yClickListener = v -> onLongPress(); private final AccessibilityManager.TouchExplorationStateChangeListener mTouchExplorationStateChangeListener = enabled -> updateAccessibility(); } Loading
packages/SystemUI/src/com/android/keyguard/LockIconViewController.java +18 −16 Original line number Diff line number Diff line Loading @@ -212,19 +212,14 @@ public class LockIconViewController extends ViewController<LockIconView> impleme updateBurnInOffsets(); updateVisibility(); mAccessibilityManager.addTouchExplorationStateChangeListener( mTouchExplorationStateChangeListener); updateAccessibility(); } private void updateAccessibility() { if (mAccessibilityManager.isTouchExplorationEnabled()) { mView.setOnClickListener( new View.OnClickListener() { @Override public void onClick(View v) { onLongPress(); } } ); mView.setOnClickListener(mA11yClickListener); } else { mView.setOnClickListener(null); } Loading @@ -242,6 +237,9 @@ public class LockIconViewController extends ViewController<LockIconView> impleme mCancelDelayedUpdateVisibilityRunnable.run(); mCancelDelayedUpdateVisibilityRunnable = null; } mAccessibilityManager.removeTouchExplorationStateChangeListener( mTouchExplorationStateChangeListener); } public float getTop() { Loading @@ -267,7 +265,6 @@ public class LockIconViewController extends ViewController<LockIconView> impleme return; } boolean wasShowingUnlock = mShowUnlockIcon; boolean wasShowingFpIcon = mUdfpsEnrolled && !mShowUnlockIcon && !mShowLockIcon && !mShowAodUnlockedIcon && !mShowAodLockIcon; mShowLockIcon = !mCanDismissLockScreen && !mUserUnlockedWithBiometric && isLockScreen() Loading Loading @@ -702,6 +699,14 @@ public class LockIconViewController extends ViewController<LockIconView> impleme mView.setAlpha(alpha); } private void updateUdfpsConfig() { // must be called from the main thread since it may update the views mExecutor.execute(() -> { updateIsUdfpsEnrolled(); updateConfiguration(); }); } private final AuthController.Callback mAuthControllerCallback = new AuthController.Callback() { @Override public void onAllAuthenticatorsRegistered() { Loading @@ -714,11 +719,8 @@ public class LockIconViewController extends ViewController<LockIconView> impleme } }; private void updateUdfpsConfig() { // must be called from the main thread since it may update the views mExecutor.execute(() -> { updateIsUdfpsEnrolled(); updateConfiguration(); }); } private final View.OnClickListener mA11yClickListener = v -> onLongPress(); private final AccessibilityManager.TouchExplorationStateChangeListener mTouchExplorationStateChangeListener = enabled -> updateAccessibility(); }