mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-19 15:12:51 +08:00
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() {
|
public void flush() {
|
||||||
CookieManager.getInstance().flush();
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
|
||||||
|
CookieManager.getInstance().flush();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user