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