From f13613530948c04bf8c8153b441d78ba74f476c8 Mon Sep 17 00:00:00 2001 From: Soren Stoutner Date: Wed, 2 Dec 2015 11:22:20 -0700 Subject: [PATCH] Refine progressBar height. Create onReceivedError toast. --- app/src/main/AndroidManifest.xml | 3 +++ .../com/stoutner/privacybrowser/Webview.java | 16 ++++++++++++---- app/src/main/res/layout/app_bar.xml | 5 +++-- 3 files changed, 18 insertions(+), 6 deletions(-) diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 02deefac..1f558d1d 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -3,6 +3,9 @@ package="com.stoutner.privacybrowser" > + + + = 11) { mainWebView.getSettings().setDisplayZoomControls(false); } @@ -172,7 +180,7 @@ public class Webview extends AppCompatActivity { return true; } - // @TargetApi(11) turns off the errors regarding copy and paste, which are removied from view in menu_webview.xml for lower version of Android. + // @TargetApi(11) turns off the errors regarding copy and paste, which are removed from view in menu_webview.xml for lower version of Android. @Override @TargetApi(11) public boolean onOptionsItemSelected(MenuItem menuItem) { diff --git a/app/src/main/res/layout/app_bar.xml b/app/src/main/res/layout/app_bar.xml index d82f5ea6..a66e99f4 100644 --- a/app/src/main/res/layout/app_bar.xml +++ b/app/src/main/res/layout/app_bar.xml @@ -5,7 +5,7 @@ android:id="@+id/addressBarFrameLayout" xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" - android:layout_height="wrap_content" > + android:layout_height="wrap_content"> +