SDL: We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy()

From 3c5e9e61123f9e020081a4a7936e305dc1ef378a Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Thu, 7 Dec 2023 14:30:44 -0800
Subject: [PATCH] We can wait up to 500ms in onNativeSurfaceDestroyed(), so
 wait at least that long in onDestroy()

---
 .../app/src/main/java/org/libsdl/app/SDLActivity.java         | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/android-project/app/src/main/java/org/libsdl/app/SDLActivity.java b/android-project/app/src/main/java/org/libsdl/app/SDLActivity.java
index 676faee36e9a..ba773765e1ae 100644
--- a/android-project/app/src/main/java/org/libsdl/app/SDLActivity.java
+++ b/android-project/app/src/main/java/org/libsdl/app/SDLActivity.java
@@ -683,11 +683,11 @@ protected void onDestroy() {
 
             // Wait for "SDLThread" thread to end
             try {
-                // 500ms timeout, because:
+                // Use a timeout because:
                 // C SDLmain() thread might have started (mSDLThread.start() called)
                 // while the SDL_Init() might not have been called yet,
                 // and so the previous QUIT event will be discarded by SDL_Init() and app is running, not exiting.
-                SDLActivity.mSDLThread.join(500);
+                SDLActivity.mSDLThread.join(1000);
             } catch(Exception e) {
                 Log.v(TAG, "Problem stopping SDLThread: " + e);
             }