Skip to content

Commit

Permalink
Update project
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbel committed Oct 18, 2024
1 parent 0f13e1b commit c501154
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import org.michaelbel.movies.common.exceptions.CreateSessionException
import org.michaelbel.movies.common.list.MovieList
import org.michaelbel.movies.common.viewmodel.BaseViewModel
import org.michaelbel.movies.interactor.Interactor
import org.michaelbel.movies.interactor.MovieInteractor
import org.michaelbel.movies.network.connectivity.NetworkManager
import org.michaelbel.movies.network.connectivity.NetworkStatus
import org.michaelbel.movies.notifications.NotificationClient
Expand All @@ -35,7 +34,6 @@ import org.michaelbel.movies.persistence.database.entity.pojo.MoviePojo
class FeedViewModel(
savedStateHandle: SavedStateHandle,
private val interactor: Interactor,
private val movieInteractor: MovieInteractor,
private val notificationClient: NotificationClient,
networkManager: NetworkManager
): BaseViewModel() {
Expand Down Expand Up @@ -72,7 +70,7 @@ class FeedViewModel(
)

val pagingDataFlow: Flow<PagingData<MoviePojo>> = currentMovieList
.flatMapLatest { movieList -> movieInteractor.moviesPagingData(movieList) }
.flatMapLatest { movieList -> interactor.moviesPagingData(movieList) }
.cachedIn(this)

private var _notificationsPermissionRequired: MutableStateFlow<Boolean> = MutableStateFlow(false)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ actual val feedKoinModule = module {
notificationClientKoinModule,
networkManagerKoinModule
)
viewModel { FeedViewModel(get(), get(), get(), get(), get()) }
viewModel { FeedViewModel(get(), get(), get(), get()) }
}

0 comments on commit c501154

Please sign in to comment.