moved login caching mode setting to webviewclient

This commit is contained in:
Philipp Schaefer 2013-10-03 16:52:33 +02:00
parent 4b0ff58a7b
commit eeb24315fb
2 changed files with 2 additions and 2 deletions

View File

@ -572,8 +572,6 @@ public class IITC_Mobile extends Activity {
*/ */
public void onReceivedLoginRequest(IITC_WebViewClient client, WebView view, public void onReceivedLoginRequest(IITC_WebViewClient client, WebView view,
String realm, String account, String args) { String realm, String account, String args) {
Log.d("iitcm", "logging in...set caching mode to default");
mIitcWebView.getSettings().setCacheMode(WebSettings.LOAD_DEFAULT);
mLogin = new IITC_DeviceAccountLogin(this, view, client); mLogin = new IITC_DeviceAccountLogin(this, view, client);
mLogin.startLogin(realm, account, args); mLogin.startLogin(realm, account, args);
} }

View File

@ -161,6 +161,8 @@ public class IITC_WebViewClient extends WebViewClient {
@Override @Override
public void onReceivedLoginRequest(WebView view, String realm, String account, String args) { public void onReceivedLoginRequest(WebView view, String realm, String account, String args) {
Log.d("iitcm", "Login requested: " + realm + " " + account + " " + args); Log.d("iitcm", "Login requested: " + realm + " " + account + " " + args);
Log.d("iitcm", "logging in...set caching mode to default");
view.getSettings().setCacheMode(WebSettings.LOAD_DEFAULT);
//((IITC_Mobile) mContext).onReceivedLoginRequest(this, view, realm, account, args); //((IITC_Mobile) mContext).onReceivedLoginRequest(this, view, realm, account, args);
} }