Skip to content

Commit

Permalink
Update breaking APIs in MediaSessionService
Browse files Browse the repository at this point in the history
This fixes a breaking change from Android-Components and will allow the media
service there to easily report crashes.
  • Loading branch information
Mugurell authored and mergify[bot] committed Jan 19, 2023
1 parent 818f0c6 commit 91e594f
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
package org.mozilla.fenix.media

import mozilla.components.browser.state.store.BrowserStore
import mozilla.components.concept.base.crash.CrashReporting
import mozilla.components.feature.media.service.AbstractMediaSessionService
import org.mozilla.fenix.ext.components

Expand All @@ -13,4 +14,5 @@ import org.mozilla.fenix.ext.components
*/
class MediaSessionService : AbstractMediaSessionService() {
override val store: BrowserStore by lazy { components.core.store }
override val crashReporter: CrashReporting by lazy { components.analytics.crashReporter }
}

0 comments on commit 91e594f

Please sign in to comment.