set caching mode to default on login...hopefully fixes the endless login bug
This commit is contained in:
@ -24,6 +24,7 @@ import android.view.Menu;
|
||||
import android.view.MenuItem;
|
||||
import android.view.Window;
|
||||
import android.view.WindowManager;
|
||||
import android.webkit.WebSettings;
|
||||
import android.webkit.WebView;
|
||||
import android.widget.SearchView;
|
||||
import android.widget.Toast;
|
||||
@ -536,6 +537,8 @@ public class IITC_Mobile extends Activity {
|
||||
*/
|
||||
public void onReceivedLoginRequest(IITC_WebViewClient client, WebView view,
|
||||
String realm, String account, String args) {
|
||||
Log.d("iitcm", "logging in...set caching mode to default");
|
||||
iitc_view.getSettings().setCacheMode(WebSettings.LOAD_DEFAULT);
|
||||
mLogin = new IITC_DeviceAccountLogin(this, view, client);
|
||||
mLogin.startLogin(realm, account, args);
|
||||
}
|
||||
|
@ -12,6 +12,7 @@ import android.preference.PreferenceManager;
|
||||
import android.util.Log;
|
||||
import android.webkit.SslErrorHandler;
|
||||
import android.webkit.WebResourceResponse;
|
||||
import android.webkit.WebSettings;
|
||||
import android.webkit.WebView;
|
||||
import android.webkit.WebViewClient;
|
||||
import android.widget.Toast;
|
||||
@ -307,6 +308,10 @@ public class IITC_WebViewClient extends WebViewClient {
|
||||
+ url);
|
||||
((IITC_Mobile) context).loadUrl(url);
|
||||
}
|
||||
if (url.contains("logout")) {
|
||||
Log.d("iitcm", "logging out...set caching mode to default");
|
||||
view.getSettings().setCacheMode(WebSettings.LOAD_DEFAULT);
|
||||
}
|
||||
return false;
|
||||
} else {
|
||||
Log.d("iitcm",
|
||||
|
Reference in New Issue
Block a user