Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions app/src/main/java/app/gamenative/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -405,10 +405,14 @@ class MainActivity : ComponentActivity() {
GOGService.stop()
}

// Stop EpicService when app is destroyed (unless config change)
// Stop EpicService when app is destroyed (unless config change or a cloud save sync is in flight)
if (EpicService.isRunning && !isChangingConfigurations) {
Timber.i("Stopping EpicService - app destroyed")
EpicService.stop()
if (!EpicService.hasActiveOperations()) {
Comment thread
phobos665 marked this conversation as resolved.
Comment thread
phobos665 marked this conversation as resolved.
Timber.i("Stopping EpicService - app destroyed")
EpicService.stop()
} else {
Timber.i("Not stopping EpicService on destroy - active operations in progress")
}
Comment thread
phobos665 marked this conversation as resolved.
}
}

Expand Down
Loading
Loading