mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-19 15:12:51 +08:00
Merge pull request #710 from dpogue/cookie-deprecation
Fix deprecation warning in SystemCookieManager
This commit is contained in:
commit
516c3411aa
@ -57,6 +57,7 @@ class SystemCookieManager implements ICordovaCookieManager {
|
|||||||
return cookieManager.getCookie(url);
|
return cookieManager.getCookie(url);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings("deprecation")
|
||||||
public void clearCookies() {
|
public void clearCookies() {
|
||||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
|
||||||
cookieManager.removeAllCookies(null);
|
cookieManager.removeAllCookies(null);
|
||||||
|
Loading…
Reference in New Issue
Block a user