removed static members to get rid of warnings

This commit is contained in:
leCradle 2013-03-10 22:40:48 +01:00
parent 5e0efc501b
commit d5a89032ff
2 changed files with 2 additions and 4 deletions

View File

@ -107,7 +107,6 @@ public class IITC_Mobile extends Activity {
return true;
}
@SuppressWarnings("static-access")
@Override
public boolean onOptionsItemSelected(MenuItem item) {
// Handle item selection

View File

@ -16,7 +16,7 @@ public class IITC_WebViewClient extends WebViewClient {
"body, #dashboard_container, #map_canvas { background: #000 !important; }".getBytes());
private static final ByteArrayInputStream empty = new ByteArrayInputStream("".getBytes());
private static WebResourceResponse iitcjs;
private WebResourceResponse iitcjs;
public IITC_WebViewClient(Context c) {
try {
@ -26,7 +26,7 @@ public class IITC_WebViewClient extends WebViewClient {
}
}
public static void loadIITC_JS(Context c) throws java.io.IOException {
public void loadIITC_JS(Context c) throws java.io.IOException {
InputStream input;
input = c.getAssets().open("iitc.js");
@ -59,7 +59,6 @@ public class IITC_WebViewClient extends WebViewClient {
// with our own content. This is used to block loading Niantic resources
// which arent 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")) {