Skip to content

Commit

Permalink
Merge branch 'master' into release
Browse files Browse the repository at this point in the history
  • Loading branch information
Swordfish90 committed Apr 12, 2021
2 parents e06b696 + abb6aa9 commit 49c170c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lemuroid-app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ plugins {

android {
defaultConfig {
versionCode = 137
versionName = "1.10.0-beta"
versionCode = 141
versionName = "1.10.0"
applicationId = "com.swordfish.lemuroid"
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,12 @@ class GameService : Service() {
}

override fun onStartCommand(intent: Intent, flags: Int, startId: Int): Int {
val game = intent.extras?.getSerializable(EXTRA_GAME) as Game?
val game = kotlin.runCatching {
intent.extras?.getSerializable(EXTRA_GAME) as Game?
}.getOrNull()

displayNotification(game)
return START_STICKY
return START_NOT_STICKY
}

private fun displayNotification(game: Game?) {
Expand Down

0 comments on commit 49c170c

Please sign in to comment.