Fix crashing, loading albums

main
h4h13 2019-09-18 01:06:52 +05:30
parent d7ab358e60
commit 3858d65a57
5 changed files with 0 additions and 13 deletions

View File

@ -20,7 +20,6 @@ import code.name.monkey.retromusic.mvp.presenter.GenresPresenter
import code.name.monkey.retromusic.mvp.presenter.GenresPresenter.GenresPresenterImpl import code.name.monkey.retromusic.mvp.presenter.GenresPresenter.GenresPresenterImpl
import dagger.Module import dagger.Module
import dagger.Provides import dagger.Provides
import javax.inject.Singleton
/** /**
* Created by hemanths on 2019-09-04. * Created by hemanths on 2019-09-04.
@ -29,14 +28,12 @@ import javax.inject.Singleton
class GenreModule { class GenreModule {
@Provides @Provides
@Singleton
fun providesGenresPresenter(presenter: GenresPresenterImpl): GenresPresenter { fun providesGenresPresenter(presenter: GenresPresenterImpl): GenresPresenter {
return presenter return presenter
} }
@Provides @Provides
@Singleton
fun providesGenreDetailsPresenter(presenter: GenreDetailsPresenterImpl): GenreDetailsPresenter { fun providesGenreDetailsPresenter(presenter: GenreDetailsPresenterImpl): GenreDetailsPresenter {
return presenter return presenter
} }

View File

@ -20,7 +20,6 @@ import code.name.monkey.retromusic.mvp.presenter.PlaylistsPresenter
import code.name.monkey.retromusic.mvp.presenter.PlaylistsPresenter.PlaylistsPresenterImpl import code.name.monkey.retromusic.mvp.presenter.PlaylistsPresenter.PlaylistsPresenterImpl
import dagger.Module import dagger.Module
import dagger.Provides import dagger.Provides
import javax.inject.Singleton
/** /**
* Created by hemanths on 2019-09-04. * Created by hemanths on 2019-09-04.
@ -28,13 +27,11 @@ import javax.inject.Singleton
@Module @Module
class PlaylistModule { class PlaylistModule {
@Provides @Provides
@Singleton
fun providesPlaylistSongPresenter(presenter: PlaylistSongsPresenterImpl): PlaylistSongsPresenter { fun providesPlaylistSongPresenter(presenter: PlaylistSongsPresenterImpl): PlaylistSongsPresenter {
return presenter return presenter
} }
@Provides @Provides
@Singleton
fun providesPlaylistsPresenter(presenter: PlaylistsPresenterImpl): PlaylistsPresenter { fun providesPlaylistsPresenter(presenter: PlaylistsPresenterImpl): PlaylistsPresenter {
return presenter return presenter
} }

View File

@ -15,12 +15,10 @@
package code.name.monkey.retromusic.dagger.module package code.name.monkey.retromusic.dagger.module
import android.content.Context import android.content.Context
import code.name.monkey.retromusic.providers.RepositoryImpl import code.name.monkey.retromusic.providers.RepositoryImpl
import code.name.monkey.retromusic.providers.interfaces.Repository import code.name.monkey.retromusic.providers.interfaces.Repository
import dagger.Module import dagger.Module
import dagger.Provides import dagger.Provides
import javax.inject.Singleton
/** /**
* Created by hemanths on 2019-09-04. * Created by hemanths on 2019-09-04.
@ -29,7 +27,6 @@ import javax.inject.Singleton
class RepositoryModule { class RepositoryModule {
@Provides @Provides
@Singleton
fun providesRepository(context: Context): Repository { fun providesRepository(context: Context): Repository {
return RepositoryImpl(context) return RepositoryImpl(context)
} }

View File

@ -18,7 +18,6 @@ import code.name.monkey.retromusic.mvp.presenter.SearchPresenter
import code.name.monkey.retromusic.mvp.presenter.SearchPresenter.SearchPresenterImpl import code.name.monkey.retromusic.mvp.presenter.SearchPresenter.SearchPresenterImpl
import dagger.Module import dagger.Module
import dagger.Provides import dagger.Provides
import javax.inject.Singleton
/** /**
* Created by hemanths on 2019-09-04. * Created by hemanths on 2019-09-04.
@ -27,7 +26,6 @@ import javax.inject.Singleton
class SearchModule { class SearchModule {
@Provides @Provides
@Singleton
fun providesSearchPresenter(presenter: SearchPresenterImpl): SearchPresenter { fun providesSearchPresenter(presenter: SearchPresenterImpl): SearchPresenter {
return presenter return presenter
} }

View File

@ -18,7 +18,6 @@ import code.name.monkey.retromusic.mvp.presenter.SongPresenter
import code.name.monkey.retromusic.mvp.presenter.SongPresenter.SongPresenterImpl import code.name.monkey.retromusic.mvp.presenter.SongPresenter.SongPresenterImpl
import dagger.Module import dagger.Module
import dagger.Provides import dagger.Provides
import javax.inject.Singleton
/** /**
* Created by hemanths on 2019-09-04. * Created by hemanths on 2019-09-04.
@ -26,7 +25,6 @@ import javax.inject.Singleton
@Module @Module
class SongModule { class SongModule {
@Provides @Provides
@Singleton
fun providesSongPresenter(presenter: SongPresenterImpl): SongPresenter { fun providesSongPresenter(presenter: SongPresenterImpl): SongPresenter {
return presenter return presenter
} }