virtualx-engine/platform/android/java
Fredia Huya-Kouadio 4d0da74014 Fix the cleanup logic for the Android render thread
On Android the exit logic goes through `Godot#onDestroy()` who attempts to cleanup the engine using the following code:

```
runOnRenderThread {
	GodotLib.ondestroy()
	forceQuit()
}
```

The issue however is that by the time we ran this code, the render thread has already been paused (but not yet destroyed), and thus `GodotLib.ondestroy()` and `forceQuit()` which are scheduled on the render thread are not executed.

To address this, we instead explicitly request the render thread to exit and block until it does. As part of it exit logic, the render thread has been updated to properly destroy and clean the native instance of the Godot engine, resolving the issue.
2024-07-24 10:17:46 -07:00
..
app Fix ANRs reported by the Google Play Console 2024-07-04 05:18:50 -07:00
editor Fix the cleanup logic for the Android render thread 2024-07-24 10:17:46 -07:00
gradle/wrapper Update Android dependencies for the project 2024-01-18 10:35:32 -08:00
lib Fix the cleanup logic for the Android render thread 2024-07-24 10:17:46 -07:00
nativeSrcsConfigs Add logic to unregister the Godot plugins on engine termination 2024-05-19 19:27:04 -07:00
scripts Style: Trim trailing whitespace and ensure newline at EOF 2024-05-08 10:12:46 +02:00
build.gradle Fix detecting when Gradle is invoked from Studio 2024-05-20 17:02:36 -07:00
gradle.properties Fix gradle build errors when the build path contains non-ASCII characters 2024-02-13 14:31:08 -08:00
gradlew Upgrade Android Gradle to version 7.2 2021-10-14 16:19:00 +01:00
gradlew.bat Upgrade Android Gradle to version 7.2 2021-10-14 16:19:00 +01:00
settings.gradle Update Android dependencies for the project 2024-01-18 10:35:32 -08:00