From 265e51d3b16daf89a76845772cd2f4f763d7c766 Mon Sep 17 00:00:00 2001 From: leCradle Date: Sun, 10 Mar 2013 18:02:34 +0100 Subject: [PATCH] removed not used imports, suppressed some warnings --- mobile/src/com/cradle/iitc_mobile/IITC_WebViewClient.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mobile/src/com/cradle/iitc_mobile/IITC_WebViewClient.java b/mobile/src/com/cradle/iitc_mobile/IITC_WebViewClient.java index eb1f7359..6ad82ff7 100644 --- a/mobile/src/com/cradle/iitc_mobile/IITC_WebViewClient.java +++ b/mobile/src/com/cradle/iitc_mobile/IITC_WebViewClient.java @@ -2,8 +2,6 @@ package com.cradle.iitc_mobile; import android.content.Context; import android.net.http.SslError; -import android.util.Log; -import android.webkit.CookieManager; import android.webkit.SslErrorHandler; import android.webkit.WebResourceResponse; import android.webkit.WebView; @@ -13,6 +11,7 @@ import java.io.InputStream; import java.io.IOException; import java.io.StringBufferInputStream; +@SuppressWarnings("deprecation") public class IITC_WebViewClient extends WebViewClient { private static final StringBufferInputStream style = new StringBufferInputStream( "body, #dashboard_container, #map_canvas { background: #000 !important; }"); @@ -61,6 +60,7 @@ public class IITC_WebViewClient extends WebViewClient { // with our own content. This is used to block loading Niantic resources // which aren’t required and to inject IITC early into the site. // via http://stackoverflow.com/a/8274881/1684530 + @SuppressWarnings("static-access") @Override public WebResourceResponse shouldInterceptRequest (final WebView view, String url) { if(url.contains("/css/common.css")) {