From 8bd73ceb3747b38d36fef86252824e151f35f566 Mon Sep 17 00:00:00 2001 From: Shai Almog <67850168+shai-almog@users.noreply.github.com> Date: Mon, 27 Nov 2023 04:22:48 +0200 Subject: [PATCH] Workaround for Android bug Attempting to fix #3769 based on the analysis in this issue: https://stackoverflow.com/a/70867926/756809 --- .../src/com/codename1/impl/android/AndroidImplementation.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ports/Android/src/com/codename1/impl/android/AndroidImplementation.java b/Ports/Android/src/com/codename1/impl/android/AndroidImplementation.java index bef52e0456..abef1aa61f 100644 --- a/Ports/Android/src/com/codename1/impl/android/AndroidImplementation.java +++ b/Ports/Android/src/com/codename1/impl/android/AndroidImplementation.java @@ -5241,7 +5241,7 @@ public void clearNativeCookies() { } private static CookieManager cookieManager; private static CookieManager getCookieManager() { - if (android.os.Build.VERSION.SDK_INT >= 21) { + if (android.os.Build.VERSION.SDK_INT > 28) { return CookieManager.getInstance(); } if (cookieManager == null) {