Skip to content

Commit

Permalink
#95 Refresh the playlist along with the library
Browse files Browse the repository at this point in the history
  • Loading branch information
kelsos committed Nov 5, 2018
1 parent d0a1a3d commit 2180684
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@ package com.kelsos.mbrc.ui.navigation.library
import com.kelsos.mbrc.events.bus.RxBus
import com.kelsos.mbrc.events.ui.LibraryRefreshCompleteEvent
import com.kelsos.mbrc.mvp.BasePresenter
import com.kelsos.mbrc.repository.AlbumRepository
import com.kelsos.mbrc.repository.ArtistRepository
import com.kelsos.mbrc.repository.GenreRepository
import com.kelsos.mbrc.repository.TrackRepository
import com.kelsos.mbrc.repository.*
import com.kelsos.mbrc.utilities.SettingsManager
import rx.Scheduler
import rx.Subscription
Expand All @@ -19,6 +16,7 @@ class LibraryPresenterImpl
private val artistRepository: ArtistRepository,
private val albumRepository: AlbumRepository,
private val trackRepository: TrackRepository,
private val playlistRepository: PlaylistRepository,
@Named("io") private val ioScheduler: Scheduler,
@Named("main") private val mainScheduler: Scheduler,
private val settingsManager: SettingsManager,
Expand All @@ -37,6 +35,7 @@ class LibraryPresenterImpl
.andThen(artistRepository.getRemote())
.andThen(albumRepository.getRemote())
.andThen(trackRepository.getRemote())
.andThen(playlistRepository.getRemote())
.subscribeOn(ioScheduler)
.observeOn(mainScheduler)
.doOnTerminate {
Expand Down

0 comments on commit 2180684

Please sign in to comment.