From: Soren Stoutner Date: Fri, 22 Jan 2016 20:06:27 +0000 (-0700) Subject: Remove webview error message toast. X-Git-Tag: v1.0~19 X-Git-Url: https://gitweb.stoutner.com/?a=commitdiff_plain;h=81b0701dff52095ddc9ab64d39d15438a9eeb408;p=PrivacyBrowserAndroid.git Remove webview error message toast. --- diff --git a/.idea/dictionaries/soren.xml b/.idea/dictionaries/soren.xml index 763ce044..03413eaa 100644 --- a/.idea/dictionaries/soren.xml +++ b/.idea/dictionaries/soren.xml @@ -4,7 +4,6 @@ duckduckgo rehide rehides - schortcut soren stoutner webview diff --git a/app/src/main/java/com/stoutner/privacybrowser/Webview.java b/app/src/main/java/com/stoutner/privacybrowser/Webview.java index c5d52dfb..2760e346 100644 --- a/app/src/main/java/com/stoutner/privacybrowser/Webview.java +++ b/app/src/main/java/com/stoutner/privacybrowser/Webview.java @@ -115,9 +115,11 @@ public class Webview extends AppCompatActivity implements CreateHomeScreenShortc return true; } + /* These errors do not provide any useful information and clutter the screen. public void onReceivedError(WebView view, WebResourceRequest request, WebResourceError error) { - Toast.makeText(mainWebViewActivity, "Error loading " + request + " Error: " + error, Toast.LENGTH_LONG).show(); + Toast.makeText(mainWebViewActivity, "Error loading " + request + " Error: " + error, Toast.LENGTH_SHORT).show(); } + */ // Update the URL in urlTextBox when the page starts to load. @Override