eden-miror/src/android
xXJSONDeruloXx 7de5eb6884
[android] fix persist manual game pause after android sleep/wake (#3651)
if user invokes the "pause game" option from the menu while in game, as expected this suspends the process till user manually hits resume.. except for one case: Android sleep/wake lifecycle.

If user manually pauses a running game, then sleeps their device, then wakes their device; the game will self-resume without user pressing "resume game".

Expected behavior IMO is that if user left the game process in manually paused state, app should respect this and persist the pause on system wake, so that user may manually press "resume game" to unfreeze the process.

Simple fix is to have a few params for user initiated pause and resume, and update the pause and run methods to handle as described above.

Please let me know if there is a cleaner way to implement!

Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/3651
Reviewed-by: crueter <crueter@eden-emu.dev>
Reviewed-by: CamilleLaVey <camillelavey99@gmail.com>
Reviewed-by: DraVee <dravee@eden-emu.dev>
Co-authored-by: xXJSONDeruloXx <danielhimebauch@gmail.com>
Co-committed-by: xXJSONDeruloXx <danielhimebauch@gmail.com>
2026-02-28 16:05:06 +01:00
..
app [android] fix persist manual game pause after android sleep/wake (#3651) 2026-02-28 16:05:06 +01:00
gradle/wrapper android: Update various deps 2025-04-01 18:30:57 +02:00
.gitignore android: Ignore validation layers library in git 2023-09-19 00:31:43 -04:00
build.gradle.kts Revert "[gradle] fix warnings & update deps (#189)" 2025-06-15 21:46:24 -04:00
gradle.properties [chore] Fixed a couple memory leaks using up ~15 MB each iteration (#398) 2025-12-26 02:55:52 +01:00
gradlew android: Various fixes for CI. 2023-06-03 00:06:05 -07:00
gradlew.bat android: Various fixes for CI. 2023-06-03 00:06:05 -07:00
settings.gradle.kts [android] Properly set Root of the Project (#3177) 2025-12-23 22:23:56 +01:00