Merge "Control magnification only with the setting." into nyc-dev
This commit is contained in:
@@ -1768,14 +1768,14 @@ public class AccessibilityManagerService extends IAccessibilityManager.Stub {
|
||||
private void updateMagnificationLocked(UserState userState) {
|
||||
final int userId = userState.mUserId;
|
||||
if (userId == mCurrentUserId && mMagnificationController != null) {
|
||||
if (userHasMagnificationServicesLocked(userState)) {
|
||||
if (userState.mIsDisplayMagnificationEnabled ||
|
||||
userHasMagnificationServicesLocked(userState)) {
|
||||
mMagnificationController.setUserId(userState.mUserId);
|
||||
} else {
|
||||
// If the user no longer has any magnification-controlling
|
||||
// services and is not using magnification gestures, then
|
||||
// reset the state to normal.
|
||||
if (!userState.mIsDisplayMagnificationEnabled
|
||||
&& mMagnificationController.resetIfNeeded(true)) {
|
||||
if (mMagnificationController.resetIfNeeded(true)) {
|
||||
// Animations are still running, so wait until we receive a
|
||||
// callback verifying that we've reset magnification.
|
||||
mUnregisterMagnificationOnReset = true;
|
||||
|
||||
Reference in New Issue
Block a user