Not using static app context wherever possible

This commit is contained in:
Prathamesh More 2022-04-17 15:11:43 +05:30
parent 904dd748cb
commit 5ff4438a42
15 changed files with 107 additions and 71 deletions

View file

@ -124,7 +124,7 @@ object SongMenuHelper : KoinComponent {
return true
}
R.id.action_add_to_blacklist -> {
BlacklistStore.getInstance(App.getContext()).addPath(File(song.data))
BlacklistStore.getInstance(activity).addPath(File(song.data))
libraryViewModel.forceReload(ReloadType.Songs)
return true
}