commit | b15a70deb446d69bba988edbeb4f0c904ea9db66 | [log] [tgz] |
---|---|---|
author | Hugo Benichi <hugobenichi@google.com> | Mon May 15 02:32:21 2017 +0000 |
committer | android-build-merger <android-build-merger@google.com> | Mon May 15 02:32:21 2017 +0000 |
tree | 94c571a404c8ca3604e222c20ba4b44d7f1cf5ac | |
parent | 9f795f47d4e34d9ff827f840f929fb696a205c34 [diff] | |
parent | 2bf886d64828b07bdd6f4643e00b0cb1d5941c87 [diff] |
Merge "CaptivePortal: login activity UI improvements" am: cb570ec50a am: 95e0e08f61 am: 2bf886d648 Change-Id: I41c965f920911cac9d858f88fcc59b7b78fdef53
diff --git a/packages/CaptivePortalLogin/src/com/android/captiveportallogin/CaptivePortalLoginActivity.java b/packages/CaptivePortalLogin/src/com/android/captiveportallogin/CaptivePortalLoginActivity.java index 5d20cf3..c9fba95 100644 --- a/packages/CaptivePortalLogin/src/com/android/captiveportallogin/CaptivePortalLoginActivity.java +++ b/packages/CaptivePortalLogin/src/com/android/captiveportallogin/CaptivePortalLoginActivity.java
@@ -122,6 +122,11 @@ WebSettings webSettings = myWebView.getSettings(); webSettings.setJavaScriptEnabled(true); webSettings.setMixedContentMode(WebSettings.MIXED_CONTENT_COMPATIBILITY_MODE); + webSettings.setUseWideViewPort(true); + webSettings.setLoadWithOverviewMode(true); + webSettings.setSupportZoom(true); + webSettings.setBuiltInZoomControls(true); + webSettings.setDisplayZoomControls(false); mWebViewClient = new MyWebViewClient(); myWebView.setWebViewClient(mWebViewClient); myWebView.setWebChromeClient(new MyWebChromeClient());