forked from github/cordova-android
AndroidCookieManager: flush is a level 21 API. Add a missing API level guard
This commit is contained in:
parent
b7abb64661
commit
5b2fa128a4
@ -54,7 +54,8 @@ class AndroidCookieManager implements ICordovaCookieManager {
|
||||
}
|
||||
|
||||
public void flush() {
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
|
||||
CookieManager.getInstance().flush();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user