From: Soren Stoutner Date: Thu, 29 Oct 2015 21:02:19 +0000 (-0700) Subject: Suppress Android Studio's SetJavaScriptEnabled warning. X-Git-Tag: v1.0~35 X-Git-Url: https://gitweb.stoutner.com/?a=commitdiff_plain;h=7e5b9b5c63d8e2ce6eee23110c07f0d4dd7da634;p=PrivacyBrowserAndroid.git Suppress Android Studio's SetJavaScriptEnabled warning. --- diff --git a/app/src/main/java/com/stoutner/privacybrowser/Webview.java b/app/src/main/java/com/stoutner/privacybrowser/Webview.java index 1fd15548..fb72f87c 100644 --- a/app/src/main/java/com/stoutner/privacybrowser/Webview.java +++ b/app/src/main/java/com/stoutner/privacybrowser/Webview.java @@ -1,5 +1,6 @@ package com.stoutner.privacybrowser; +import android.annotation.SuppressLint; import android.app.Activity; import android.content.Intent; import android.graphics.Bitmap; @@ -36,6 +37,9 @@ public class Webview extends AppCompatActivity { static ImageView favoriteIcon; static final String homepage = "https://www.duckduckgo.com"; + // Remove Android Studio's warning about the dangers of using SetJavaScriptEnabled. + @SuppressLint("SetJavaScriptEnabled") + @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);