Remove webview error message toast.
authorSoren Stoutner <soren@stoutner.com>
Fri, 22 Jan 2016 20:06:27 +0000 (13:06 -0700)
committerSoren Stoutner <soren@stoutner.com>
Fri, 22 Jan 2016 20:06:27 +0000 (13:06 -0700)
.idea/dictionaries/soren.xml
app/src/main/java/com/stoutner/privacybrowser/Webview.java

index 763ce0442e4f1ee1f73d3322952253ff0ae0c683..03413eaa50e94ae2e6e13c3377a52fb87a04ea01 100644 (file)
@@ -4,7 +4,6 @@
       <w>duckduckgo</w>
       <w>rehide</w>
       <w>rehides</w>
-      <w>schortcut</w>
       <w>soren</w>
       <w>stoutner</w>
       <w>webview</w>
index c5d52dfbfc6958337c7d0ff91927023c528046df..2760e346e5458f1748fcb16e85144b53a782274c 100644 (file)
@@ -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