fix: new created playlist not immediately visible

This commit is contained in:
Bnyro 2023-11-02 13:45:25 +01:00
parent db91919cb6
commit f0fd37e690

View File

@ -40,7 +40,7 @@ class AddToPlaylistDialog : DialogFragment() {
val binding = DialogAddToPlaylistBinding.inflate(layoutInflater)
childFragmentManager.setFragmentResultListener(
ADD_TO_PLAYLIST_DIALOG_REQUEST_KEY,
CreatePlaylistDialog.CREATE_PLAYLIST_DIALOG_REQUEST_KEY,
this
) { _, resultBundle ->
val addedToPlaylist = resultBundle.getBoolean(IntentData.playlistTask)
@ -128,8 +128,4 @@ class AddToPlaylistDialog : DialogFragment() {
appContext.toastFromMainDispatcher(R.string.fail)
}
}
companion object {
const val ADD_TO_PLAYLIST_DIALOG_REQUEST_KEY = "add_to_playlist_dialog_request_key"
}
}