Merge "Viewport should zoom out when screen magnification is disabled." into jb-mr1-dev

This commit is contained in:
Svetoslav Ganov
2012-09-09 10:50:34 -07:00
committed by Android (Google) Code Review

View File

@@ -236,7 +236,6 @@ public final class ScreenMagnifier implements EventStreamTransformation {
mDetectingStateHandler.clear();
mStateViewportDraggingHandler.clear();
mGestureDetector.clear();
if (mNext != null) {
mNext.clear();
}
@@ -244,6 +243,8 @@ public final class ScreenMagnifier implements EventStreamTransformation {
@Override
public void onDestroy() {
mMagnificationController.setScaleAndMagnifiedRegionCenter(1.0f,
0, 0, true);
mDisplayProvider.destroy();
mDisplayContentObserver.destroy();
}