android: sync sdl activity with upstream

This commit is contained in:
Sigrid Solveig Haflínudóttir 2021-12-27 17:49:45 +01:00
parent f6e48c482c
commit b645fcb14a
1 changed files with 13 additions and 0 deletions

View File

@ -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.
*/