Skip to content

Commit

Permalink
Fixed assertion, it's possible for the OS to grant permissions we hav…
Browse files Browse the repository at this point in the history
…en't asked for.
  • Loading branch information
slouken committed May 14, 2024
1 parent 8b5f0d0 commit be786ae
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/core/android/SDL_android.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit be786ae

Please sign in to comment.