categories for advanced settings

This commit is contained in:
Philipp Schaefer
2013-10-13 14:11:53 +02:00
parent 6589cd454f
commit c405b626d3
5 changed files with 46 additions and 34 deletions

View File

@ -159,7 +159,7 @@ public class IITC_WebView extends WebView {
return mJsInterface;
}
public void updateCaching() {
public void updateCaching(boolean login) {
switch(Integer.parseInt(mSharedPrefs.getString("pref_caching", "1"))) {
case 0:
mSettings.setCacheMode(WebSettings.LOAD_CACHE_ELSE_NETWORK);
@ -168,7 +168,6 @@ public class IITC_WebView extends WebView {
mSettings.setCacheMode(WebSettings.LOAD_DEFAULT);
break;
default:
boolean login = false;
if (getUrl() != null) {
login = getUrl().contains("accounts.google.com");
}