mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-14 06:10:31 +05:30
fix: new created playlist not immediately visible
This commit is contained in:
parent
db91919cb6
commit
f0fd37e690
@ -40,7 +40,7 @@ class AddToPlaylistDialog : DialogFragment() {
|
|||||||
val binding = DialogAddToPlaylistBinding.inflate(layoutInflater)
|
val binding = DialogAddToPlaylistBinding.inflate(layoutInflater)
|
||||||
|
|
||||||
childFragmentManager.setFragmentResultListener(
|
childFragmentManager.setFragmentResultListener(
|
||||||
ADD_TO_PLAYLIST_DIALOG_REQUEST_KEY,
|
CreatePlaylistDialog.CREATE_PLAYLIST_DIALOG_REQUEST_KEY,
|
||||||
this
|
this
|
||||||
) { _, resultBundle ->
|
) { _, resultBundle ->
|
||||||
val addedToPlaylist = resultBundle.getBoolean(IntentData.playlistTask)
|
val addedToPlaylist = resultBundle.getBoolean(IntentData.playlistTask)
|
||||||
@ -128,8 +128,4 @@ class AddToPlaylistDialog : DialogFragment() {
|
|||||||
appContext.toastFromMainDispatcher(R.string.fail)
|
appContext.toastFromMainDispatcher(R.string.fail)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
companion object {
|
|
||||||
const val ADD_TO_PLAYLIST_DIALOG_REQUEST_KEY = "add_to_playlist_dialog_request_key"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user