From 3858d65a57f74e9e8c39ebbb58f05d3082cd17b3 Mon Sep 17 00:00:00 2001 From: h4h13 Date: Wed, 18 Sep 2019 01:06:52 +0530 Subject: [PATCH] Fix crashing, loading albums --- .../code/name/monkey/retromusic/dagger/module/GenreModule.kt | 3 --- .../name/monkey/retromusic/dagger/module/PlaylistModule.kt | 3 --- .../name/monkey/retromusic/dagger/module/RepositoryModule.kt | 3 --- .../code/name/monkey/retromusic/dagger/module/SearchModule.kt | 2 -- .../code/name/monkey/retromusic/dagger/module/SongModule.kt | 2 -- 5 files changed, 13 deletions(-) diff --git a/app/src/main/java/code/name/monkey/retromusic/dagger/module/GenreModule.kt b/app/src/main/java/code/name/monkey/retromusic/dagger/module/GenreModule.kt index 233f5afb..6fc027cc 100644 --- a/app/src/main/java/code/name/monkey/retromusic/dagger/module/GenreModule.kt +++ b/app/src/main/java/code/name/monkey/retromusic/dagger/module/GenreModule.kt @@ -20,7 +20,6 @@ import code.name.monkey.retromusic.mvp.presenter.GenresPresenter import code.name.monkey.retromusic.mvp.presenter.GenresPresenter.GenresPresenterImpl import dagger.Module import dagger.Provides -import javax.inject.Singleton /** * Created by hemanths on 2019-09-04. @@ -29,14 +28,12 @@ import javax.inject.Singleton class GenreModule { @Provides - @Singleton fun providesGenresPresenter(presenter: GenresPresenterImpl): GenresPresenter { return presenter } @Provides - @Singleton fun providesGenreDetailsPresenter(presenter: GenreDetailsPresenterImpl): GenreDetailsPresenter { return presenter } diff --git a/app/src/main/java/code/name/monkey/retromusic/dagger/module/PlaylistModule.kt b/app/src/main/java/code/name/monkey/retromusic/dagger/module/PlaylistModule.kt index 3944eb93..2995fe5d 100644 --- a/app/src/main/java/code/name/monkey/retromusic/dagger/module/PlaylistModule.kt +++ b/app/src/main/java/code/name/monkey/retromusic/dagger/module/PlaylistModule.kt @@ -20,7 +20,6 @@ import code.name.monkey.retromusic.mvp.presenter.PlaylistsPresenter import code.name.monkey.retromusic.mvp.presenter.PlaylistsPresenter.PlaylistsPresenterImpl import dagger.Module import dagger.Provides -import javax.inject.Singleton /** * Created by hemanths on 2019-09-04. @@ -28,13 +27,11 @@ import javax.inject.Singleton @Module class PlaylistModule { @Provides - @Singleton fun providesPlaylistSongPresenter(presenter: PlaylistSongsPresenterImpl): PlaylistSongsPresenter { return presenter } @Provides - @Singleton fun providesPlaylistsPresenter(presenter: PlaylistsPresenterImpl): PlaylistsPresenter { return presenter } diff --git a/app/src/main/java/code/name/monkey/retromusic/dagger/module/RepositoryModule.kt b/app/src/main/java/code/name/monkey/retromusic/dagger/module/RepositoryModule.kt index b9b921c3..71e48d80 100644 --- a/app/src/main/java/code/name/monkey/retromusic/dagger/module/RepositoryModule.kt +++ b/app/src/main/java/code/name/monkey/retromusic/dagger/module/RepositoryModule.kt @@ -15,12 +15,10 @@ package code.name.monkey.retromusic.dagger.module import android.content.Context - import code.name.monkey.retromusic.providers.RepositoryImpl import code.name.monkey.retromusic.providers.interfaces.Repository import dagger.Module import dagger.Provides -import javax.inject.Singleton /** * Created by hemanths on 2019-09-04. @@ -29,7 +27,6 @@ import javax.inject.Singleton class RepositoryModule { @Provides - @Singleton fun providesRepository(context: Context): Repository { return RepositoryImpl(context) } diff --git a/app/src/main/java/code/name/monkey/retromusic/dagger/module/SearchModule.kt b/app/src/main/java/code/name/monkey/retromusic/dagger/module/SearchModule.kt index c8e8b262..0eafe55a 100644 --- a/app/src/main/java/code/name/monkey/retromusic/dagger/module/SearchModule.kt +++ b/app/src/main/java/code/name/monkey/retromusic/dagger/module/SearchModule.kt @@ -18,7 +18,6 @@ import code.name.monkey.retromusic.mvp.presenter.SearchPresenter import code.name.monkey.retromusic.mvp.presenter.SearchPresenter.SearchPresenterImpl import dagger.Module import dagger.Provides -import javax.inject.Singleton /** * Created by hemanths on 2019-09-04. @@ -27,7 +26,6 @@ import javax.inject.Singleton class SearchModule { @Provides - @Singleton fun providesSearchPresenter(presenter: SearchPresenterImpl): SearchPresenter { return presenter } diff --git a/app/src/main/java/code/name/monkey/retromusic/dagger/module/SongModule.kt b/app/src/main/java/code/name/monkey/retromusic/dagger/module/SongModule.kt index 0a5e9c79..a78a864e 100644 --- a/app/src/main/java/code/name/monkey/retromusic/dagger/module/SongModule.kt +++ b/app/src/main/java/code/name/monkey/retromusic/dagger/module/SongModule.kt @@ -18,7 +18,6 @@ import code.name.monkey.retromusic.mvp.presenter.SongPresenter import code.name.monkey.retromusic.mvp.presenter.SongPresenter.SongPresenterImpl import dagger.Module import dagger.Provides -import javax.inject.Singleton /** * Created by hemanths on 2019-09-04. @@ -26,7 +25,6 @@ import javax.inject.Singleton @Module class SongModule { @Provides - @Singleton fun providesSongPresenter(presenter: SongPresenterImpl): SongPresenter { return presenter }