From 81b0701dff52095ddc9ab64d39d15438a9eeb408 Mon Sep 17 00:00:00 2001 From: Soren Stoutner Date: Fri, 22 Jan 2016 13:06:27 -0700 Subject: [PATCH] Remove webview error message toast. --- .idea/dictionaries/soren.xml | 1 - app/src/main/java/com/stoutner/privacybrowser/Webview.java | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) 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 -- 2.45.2