Skip to content

Commit

Permalink
[APT-10204] Add default value when getting armadillo config from bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
griffinfscribd committed Jun 27, 2024
1 parent 9bf48ab commit a4d2fef
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ internal class MediaSessionCallback(private val onMediaSessionEventListener: OnM
onStop()
}

val config = extras.getSerializable(Constants.Keys.KEY_ARMADILLO_CONFIG) as ArmadilloConfiguration
val config = extras.getSerializable(Constants.Keys.KEY_ARMADILLO_CONFIG) as ArmadilloConfiguration? ?: ArmadilloConfiguration()
Log.v(TAG, "ArmadilloConfiguration: $config")
playbackEngine = playbackEngineFactory.createPlaybackEngine(newAudioPlayable)
playbackEngine?.beginPlayback(config)
Expand Down

0 comments on commit a4d2fef

Please sign in to comment.