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

Commit 3dc719b6 authored by Android (Google) Code Review's avatar Android (Google) Code Review
Browse files

Merge change 3922

* changes:
  Move the zoom buttons to the bottom right for the browser.
parents 97857f86 aa3f96a7
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -694,6 +694,16 @@ public class WebView extends AbsoluteLayout

        mZoomButtonsController = new ZoomButtonsController(this);
        mZoomButtonsController.setOnZoomListener(mZoomListener);
        // ZoomButtonsController positions the buttons at the bottom, but in
        // the middle.  Change their layout parameters so they appear on the
        // right.
        View controls = mZoomButtonsController.getZoomControls();
        ViewGroup.LayoutParams params = controls.getLayoutParams();
        if (params instanceof FrameLayout.LayoutParams) {
            FrameLayout.LayoutParams frameParams = (FrameLayout.LayoutParams)
                    params;
            frameParams.gravity = Gravity.RIGHT;
        }
    }

    private void updateZoomButtonsEnabled() {