mirror of
https://github.com/apache/cordova-android.git
synced 2026-05-11 00:00:05 +08:00
AndroidCookieManager: flush is a level 21 API. Add a missing API level guard
This commit is contained in:
@@ -54,7 +54,8 @@ class AndroidCookieManager implements ICordovaCookieManager {
|
||||
}
|
||||
|
||||
public void flush() {
|
||||
CookieManager.getInstance().flush();
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
|
||||
CookieManager.getInstance().flush();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user