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
This commit is contained in:
Svetoslav Ganov
2012-09-09 11:13:53 -07:00
parent 5b1720e11d
commit add52a975a

View File

@@ -245,6 +245,7 @@ public final class ScreenMagnifier implements EventStreamTransformation {
public void onDestroy() {
mMagnificationController.setScaleAndMagnifiedRegionCenter(1.0f,
0, 0, true);
mViewport.setFrameShown(false, true);
mDisplayProvider.destroy();
mDisplayContentObserver.destroy();
}