Merge "Viewport should zoom out when screen magnification is disabled." into jb-mr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
5b1720e11d
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user