Skip to content

Commit add52a9

Browse files
committed
Viewport should zoom out when screen magnification is disabled.
1. If screen magnification is disabled when the screen is in a magnified state we have to zoom out since otherwise the user is stuck in a magnified state without ability to pan/zoom/ toggle magnification which renders the device useless. bug:7131030 Change-Id: I8f3339f31310448ec8742f3101c1fdc61a6a5f83
1 parent 5b1720e commit add52a9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

services/java/com/android/server/accessibility/ScreenMagnifier.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,7 @@ public void clear() {
245245
public void onDestroy() {
246246
mMagnificationController.setScaleAndMagnifiedRegionCenter(1.0f,
247247
0, 0, true);
248+
mViewport.setFrameShown(false, true);
248249
mDisplayProvider.destroy();
249250
mDisplayContentObserver.destroy();
250251
}

0 commit comments

Comments
 (0)