From be786aeb9dc6766d8830fb146a813a61388c36a3 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Mon, 13 May 2024 19:42:54 -0700
Subject: [PATCH] Fixed assertion, it's possible for the OS to grant
permissions we haven't asked for.
---
src/core/android/SDL_android.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/src/core/android/SDL_android.c b/src/core/android/SDL_android.c
index b890b7dd5d53f..858b21b8d7b12 100644
--- a/src/core/android/SDL_android.c
+++ b/src/core/android/SDL_android.c
@@ -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)