From 7e5b9b5c63d8e2ce6eee23110c07f0d4dd7da634 Mon Sep 17 00:00:00 2001 From: Soren Stoutner Date: Thu, 29 Oct 2015 14:02:19 -0700 Subject: [PATCH] Suppress Android Studio's SetJavaScriptEnabled warning. --- app/src/main/java/com/stoutner/privacybrowser/Webview.java | 4 ++++ 1 file changed, 4 insertions(+) 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); -- 2.45.2