mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-19 04:46:08 +00:00
Fix Steam URL game ID fallback
This commit is contained in:
1 parent
0349745c49
commit
b76610d279
1 file changed
+4
-1
@@ -377,7 +377,10 @@ class SessionService : Service() {
|
||||
?.takeIf { it.startsWith(GAME_URL_PREFIX) }
|
||||
?.removePrefix(GAME_URL_PREFIX)
|
||||
?.takeIf(GameLaunchLink::validId)
|
||||
val resolvedGameId = intent?.getStringExtra(EXTRA_GAME_ID) ?: steamUrlGameId
|
||||
val resolvedGameId = intent?.getStringExtra(EXTRA_GAME_ID)
|
||||
?.trim()
|
||||
?.takeIf(GameLaunchLink::validId)
|
||||
?: steamUrlGameId
|
||||
SessionState.gameId = resolvedGameId
|
||||
SessionPrefs.setActiveScreenEffectsProfile(
|
||||
this,
|
||||
|
||||
Reference in new issue
Block a user