mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-24 23:36:04 +00:00
* fix(session): serialize launch requests in a coordinator Replace the gameLaunchRequest counter and the single pendingGameLink field with a LaunchCoordinator. A launch is now identified by a ticket, so a stale callback can only act on its own request, and a game link is superseded by any newer launch. Launching is also refused while a package install stage is in progress. * fix(frontend): a replacement intent supersedes uncommitted launch state A game link that resolved while the launcher was not resumed stayed pending, so opening Settings, following a notification or picking a shortcut left it in the coordinator and the next library refresh launched the old game over the new screen. The same gap let an ACTION_SETUP intent leave an accepted launch current, so a late Xbox manifest check could start the game after the user had moved on. A replacement activity intent now cancels every ticket this activity has not dispatched, and the refresh path may only finish a link owned by the intent the activity shows. The toast for a superseded store lookup is gated on its ticket, and the coordinator test now proves cancelAll() invalidates a link ticket. The deferred Proton-compat launch is untouched: its ordering still predates this change and has its own follow-up.