Browse Source

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

Sam Lantinga 11 months ago
parent
commit
be786aeb9d
1 changed files with 0 additions and 1 deletions
  1. 0 1
      src/core/android/SDL_android.c

+ 0 - 1
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)