X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/blobdiff_plain/85f63a0ff4e303593de7aabfaff7e01932d27217..e901b609baa4dd5f681e2a5257c9e504997e3377:/src/com/owncloud/android/authentication/SsoWebViewClient.java?ds=sidebyside diff --git a/src/com/owncloud/android/authentication/SsoWebViewClient.java b/src/com/owncloud/android/authentication/SsoWebViewClient.java index 88cea8af..b90ab85b 100644 --- a/src/com/owncloud/android/authentication/SsoWebViewClient.java +++ b/src/com/owncloud/android/authentication/SsoWebViewClient.java @@ -24,6 +24,9 @@ import java.security.cert.CertificateException; import java.security.cert.CertificateFactory; import java.security.cert.X509Certificate; +import com.owncloud.android.lib.common.network.NetworkUtils; +import com.owncloud.android.lib.common.utils.Log_OC; + import android.content.Context; import android.graphics.Bitmap; import android.net.http.SslCertificate; @@ -40,9 +43,6 @@ import android.webkit.WebResourceResponse; import android.webkit.WebView; import android.webkit.WebViewClient; -import com.owncloud.android.lib.common.network.NetworkUtils; -import com.owncloud.android.utils.Log_OC; - /** * Custom {@link WebViewClient} client aimed to catch the end of a single-sign-on process @@ -87,6 +87,7 @@ public class SsoWebViewClient extends WebViewClient { @Override public void onPageStarted (WebView view, String url, Bitmap favicon) { Log_OC.d(TAG, "onPageStarted : " + url); + view.clearCache(true); super.onPageStarted(view, url, favicon); } @@ -197,7 +198,7 @@ public class SsoWebViewClient extends WebViewClient { public void onReceivedHttpAuthRequest (WebView view, HttpAuthHandler handler, String host, String realm) { Log_OC.d(TAG, "onReceivedHttpAuthRequest : " + host); - ((AuthenticatorActivity)mContext).showAuthenticationDialog(view, handler); + ((AuthenticatorActivity)mContext).createAuthenticationDialog(view, handler); } @Override