Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 610d92f4 authored by Shimeng (Simon) Wang's avatar Shimeng (Simon) Wang Committed by Android (Google) Code Review
Browse files

Merge "Use the default scale for text input."

parents 94b19d37 6c09ef01
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -3674,10 +3674,10 @@ public class WebView extends AbsoluteLayout
                getContext().getSystemService(Context.INPUT_METHOD_SERVICE);

        // bring it back to the reading level scale so that user can enter text
        boolean zoom = mZoomManager.getScale() < mZoomManager.getReadingLevelScale();
        boolean zoom = mZoomManager.getScale() < mZoomManager.getDefaultScale();
        if (zoom) {
            mZoomManager.setZoomCenter(mLastTouchX, mLastTouchY);
            mZoomManager.setZoomScale(mZoomManager.getReadingLevelScale(), false);
            mZoomManager.setZoomScale(mZoomManager.getDefaultScale(), false);
        }
        if (isTextView) {
            rebuildWebTextView();