mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-19 07:02:51 +08:00
Fix deprecation warning in SystemCookieManager
This commit is contained in:
parent
9531dbbc7b
commit
908354e7fa
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user