Skip to content

Commit

Permalink
update foreground
Browse files Browse the repository at this point in the history
  • Loading branch information
GrakovNe committed Nov 6, 2024
1 parent 7be7ba2 commit f1d54a0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ class MediaRepository @Inject constructor(
val intent = Intent(context, PlaybackService::class.java).apply {
action = PlaybackService.ACTION_PLAY
}
ContextCompat.startForegroundService(context, intent)
context.startForegroundService(intent)
}

fun pauseAudio() {
Expand Down

0 comments on commit f1d54a0

Please sign in to comment.