Merge pull request #710 from dpogue/cookie-deprecation

Fix deprecation warning in SystemCookieManager
This commit is contained in:
Darryl Pogue 2019-04-02 13:27:20 -07:00 committed by GitHub
commit 516c3411aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -57,6 +57,7 @@ class SystemCookieManager implements ICordovaCookieManager {
return cookieManager.getCookie(url);
}
@SuppressWarnings("deprecation")
public void clearCookies() {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
cookieManager.removeAllCookies(null);