Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set up notification channels on watch #855

Merged
merged 1 commit into from
Mar 31, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import au.com.shiftyjelly.pocketcasts.analytics.FirebaseAnalyticsTracker
import au.com.shiftyjelly.pocketcasts.preferences.Settings
import au.com.shiftyjelly.pocketcasts.repositories.download.DownloadManager
import au.com.shiftyjelly.pocketcasts.repositories.file.StorageOptions
import au.com.shiftyjelly.pocketcasts.repositories.notification.NotificationHelper
import au.com.shiftyjelly.pocketcasts.repositories.playback.PlaybackManager
import au.com.shiftyjelly.pocketcasts.repositories.podcast.EpisodeManager
import au.com.shiftyjelly.pocketcasts.repositories.podcast.PlaylistManager
Expand All @@ -30,6 +31,7 @@ class PocketCastsWearApplication : Application(), Configuration.Provider {

@Inject lateinit var downloadManager: DownloadManager
@Inject lateinit var episodeManager: EpisodeManager
@Inject lateinit var notificationHelper: NotificationHelper
@Inject lateinit var playbackManager: PlaybackManager
@Inject lateinit var playlistManager: PlaylistManager
@Inject lateinit var podcastManager: PodcastManager
Expand Down Expand Up @@ -57,6 +59,9 @@ class PocketCastsWearApplication : Application(), Configuration.Provider {
analytics = FirebaseAnalytics.getInstance(this@PocketCastsWearApplication),
settings = settings
)

notificationHelper.setupNotificationChannels()

withContext(Dispatchers.Default) {
playbackManager.setup()
downloadManager.setup(episodeManager, podcastManager, playlistManager, playbackManager)
Expand Down