From b645fcb14acfd0d82eb1f13bfab77407f4d4337b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sigrid=20Solveig=20Hafl=C3=ADnud=C3=B3ttir?= Date: Mon, 27 Dec 2021 17:49:45 +0100 Subject: [PATCH] android: sync sdl activity with upstream --- .../src/main/java/org/libsdl/app/SDLActivity.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/android/app/src/main/java/org/libsdl/app/SDLActivity.java b/src/android/app/src/main/java/org/libsdl/app/SDLActivity.java index a990351..14d382e 100644 --- a/src/android/app/src/main/java/org/libsdl/app/SDLActivity.java +++ b/src/android/app/src/main/java/org/libsdl/app/SDLActivity.java @@ -1503,6 +1503,19 @@ public class SDLActivity extends Activity implements View.OnSystemUiVisibilityCh return mLastCursorID; } + /** + * This method is called by SDL using JNI. + */ + public static void destroyCustomCursor(int cursorID) { + if (Build.VERSION.SDK_INT >= 24) { + try { + mCursors.remove(cursorID); + } catch (Exception e) { + } + } + return; + } + /** * This method is called by SDL using JNI. */