Fixed assertion, it's possible for the OS to grant permissions we haven't asked for.

This commit is contained in:
Sam Lantinga 2024-05-13 19:42:54 -07:00
parent 8b5f0d07e9
commit be786aeb9d

View file

@ -2658,7 +2658,6 @@ JNIEXPORT void JNICALL SDL_JAVA_INTERFACE(nativePermissionResult)(
}
SDL_UnlockMutex(Android_ActivityMutex);
SDL_assert(!"Shouldn't have hit this code"); // we had a permission response for a request we never made...?
}
int SDL_AndroidRequestPermission(const char *permission, SDL_AndroidRequestPermissionCallback cb, void *userdata)