Avoid IllegalStateException about CookieSyncManager
This commit is contained in:
1 parent
5022ce2b54
commit
b18cdd04ce
1 file changed
+1
-1
@@ -35,8 +35,8 @@ public class WebViewLoginActivity extends AbsActivity {
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
|
||||
CookieManager.getInstance().removeAllCookie();
|
||||
WebView wv = new WebView(this);
|
||||
CookieManager.getInstance().removeAllCookie();
|
||||
wv.getSettings().setJavaScriptEnabled(true);
|
||||
wv.setWebViewClient(new LoginWebViewClient());
|
||||
wv.loadUrl(EhClient.LOGIN_URL);
|
||||
|
||||
Reference in new issue
Block a user