playback: fix incorrect super call

This commit is contained in:
Alexander Capehart 2023-02-20 21:38:41 -07:00
parent 9c7fa86ead
commit 2f04f7dbc7
No known key found for this signature in database
GPG key ID: 37DBE3621FE9AD47

View file

@ -25,8 +25,6 @@ import androidx.core.content.ContextCompat
import dagger.hilt.android.AndroidEntryPoint
import javax.inject.Inject
import org.oxycblt.auxio.playback.state.PlaybackStateManager
import org.oxycblt.auxio.util.logD
import org.oxycblt.auxio.util.logE
/**
* A [BroadcastReceiver] that forwards [Intent.ACTION_MEDIA_BUTTON] [Intent]s to [PlaybackService].
@ -37,7 +35,6 @@ class MediaButtonReceiver : BroadcastReceiver() {
@Inject lateinit var playbackManager: PlaybackStateManager
override fun onReceive(context: Context, intent: Intent) {
super.onRecieve()
if (playbackManager.queue.currentSong != null) {
// We have a song, so we can assume that the service will start a foreground state.
// At least, I hope. Again, *this is why we don't do this*. I cannot describe how