Skip to content

Commit

Permalink
Android: fixes Recent Apps crash (#776)
Browse files Browse the repository at this point in the history
  • Loading branch information
scottrules44 authored Feb 6, 2025
1 parent 0b97b12 commit 2e34094
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion platform/android/sdk/src/com/ansca/corona/Controller.java
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,9 @@ public void run() {
});
myMediaManager.pauseAll();
internalSetIdleTimer(true);

if (Build.VERSION.SDK_INT == Build.VERSION_CODES.UPSIDE_DOWN_CAKE) { // Android 14 does not allow for gl render
updateRuntimeState(this.myRuntime, true);
}
while (myRuntimeState == RuntimeState.Stopping) {
try {
// Android ANR time is 5 seconds, so wait up to 4 seconds before assuming
Expand Down

0 comments on commit 2e34094

Please sign in to comment.