From 4b767bca54c8bba387b84b4f959d164ecc6c63f6 Mon Sep 17 00:00:00 2001 From: Hemanth S Date: Tue, 6 Oct 2020 14:36:16 +0530 Subject: [PATCH] Updated Spotless --- .../playlists/PlaylistDetailsFragment.kt | 3 +-- app/src/main/res/navigation/main_graph.xml | 4 ++-- build.gradle | 3 ++- spotless.gradle | 17 ++--------------- 4 files changed, 7 insertions(+), 20 deletions(-) diff --git a/app/src/main/java/code/name/monkey/retromusic/fragments/playlists/PlaylistDetailsFragment.kt b/app/src/main/java/code/name/monkey/retromusic/fragments/playlists/PlaylistDetailsFragment.kt index 6637984b..dc3e874c 100644 --- a/app/src/main/java/code/name/monkey/retromusic/fragments/playlists/PlaylistDetailsFragment.kt +++ b/app/src/main/java/code/name/monkey/retromusic/fragments/playlists/PlaylistDetailsFragment.kt @@ -24,7 +24,7 @@ import org.koin.core.parameter.parametersOf class PlaylistDetailsFragment : AbsMainActivityFragment(R.layout.fragment_playlist_detail) { private val arguments by navArgs() - private val viewModel: PlaylistDetailsViewModel by viewModel { + private val viewModel by viewModel { parametersOf(arguments.extraPlaylist) } @@ -89,7 +89,6 @@ class PlaylistDetailsFragment : AbsMainActivityFragment(R.layout.fragment_playli emptyText.isVisible = playlistSongAdapter.itemCount == 0 } - override fun onDestroy() { recyclerView?.itemAnimator = null recyclerView?.adapter = null diff --git a/app/src/main/res/navigation/main_graph.xml b/app/src/main/res/navigation/main_graph.xml index 80614a59..ad6626bf 100644 --- a/app/src/main/res/navigation/main_graph.xml +++ b/app/src/main/res/navigation/main_graph.xml @@ -15,7 +15,7 @@ app:argType="code.name.monkey.retromusic.model.Genre" /> - +