aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/activity/SimpleWebviewActivity.java
diff options
context:
space:
mode:
authorBananeweizen <bananeweizen@gmx.de>2014-06-01 11:41:00 +0200
committerBananeweizen <bananeweizen@gmx.de>2014-06-01 11:41:23 +0200
commit707eb9bccdf192e34d45a1b152f66c129832e726 (patch)
tree2ff751fba65f45efdce616406fa256d169ae3f21 /main/src/cgeo/geocaching/activity/SimpleWebviewActivity.java
parent1c479b0b39b4b7b3453bf7b3ad4f03cc03e00d20 (diff)
downloadcgeo-707eb9bccdf192e34d45a1b152f66c129832e726.zip
cgeo-707eb9bccdf192e34d45a1b152f66c129832e726.tar.gz
cgeo-707eb9bccdf192e34d45a1b152f66c129832e726.tar.bz2
lint fixes
Diffstat (limited to 'main/src/cgeo/geocaching/activity/SimpleWebviewActivity.java')
-rw-r--r--main/src/cgeo/geocaching/activity/SimpleWebviewActivity.java10
1 files changed, 7 insertions, 3 deletions
diff --git a/main/src/cgeo/geocaching/activity/SimpleWebviewActivity.java b/main/src/cgeo/geocaching/activity/SimpleWebviewActivity.java
index 54f3667..83b9281 100644
--- a/main/src/cgeo/geocaching/activity/SimpleWebviewActivity.java
+++ b/main/src/cgeo/geocaching/activity/SimpleWebviewActivity.java
@@ -1,9 +1,11 @@
package cgeo.geocaching.activity;
+import cgeo.geocaching.R;
+
+import android.annotation.SuppressLint;
import android.os.Bundle;
import android.webkit.WebView;
import android.webkit.WebViewClient;
-import cgeo.geocaching.R;
public class SimpleWebviewActivity extends AbstractActionBarActivity {
@@ -11,13 +13,15 @@ public class SimpleWebviewActivity extends AbstractActionBarActivity {
class SimplelWebviewClient extends WebViewClient {
@Override
- public boolean shouldOverrideUrlLoading(WebView view, String url) {
+ public boolean shouldOverrideUrlLoading(final WebView view, final String url) {
webview.loadUrl(url);
return true;
}
}
+
+ @SuppressLint("SetJavaScriptEnabled")
@Override
- public void onCreate(Bundle savedInstanceState) {
+ public void onCreate(final Bundle savedInstanceState) {
super.onCreate(savedInstanceState, R.layout.internal_browser);
webview = (WebView) findViewById(R.id.webview);