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

Commit aa3f96a7 authored by Leon Scroggins's avatar Leon Scroggins
Browse files

Move the zoom buttons to the bottom right for the browser.

Per Leland's latest design, the zoom buttons should be on
the bottom right of the screen.  Move them there.
parent c581e27c
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() {