Fix deprecation warning in SystemCookieManager

This commit is contained in:
Darryl Pogue 2019-02-07 19:32:11 -08:00
parent 9531dbbc7b
commit 908354e7fa
No known key found for this signature in database
GPG Key ID: CB824715C3E6FD41

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);