detail: better fix no playlist nav

Actually a problem with the dialog. Very annoying execution flow bug.
This commit is contained in:
Alexander Capehart 2025-02-21 11:45:53 -07:00
parent 6589cd44eb
commit 9ae3587a7e
No known key found for this signature in database
GPG key ID: 37DBE3621FE9AD47

View file

@ -53,6 +53,9 @@ class DeletePlaylistDialog : ViewBindingMaterialDialogFragment<DialogDeletePlayl
builder
.setTitle(R.string.lbl_confirm_delete_playlist)
.setPositiveButton(R.string.lbl_delete) { _, _ ->
// Normally the navigateUp will occur after this, which then collides with the
// playlist view's navigation. Forcefully navigate up to stop this.
findNavController().navigateUp()
// Now we can delete the playlist for-real this time.
musicModel.deletePlaylist(
unlikelyToBeNull(pickerModel.currentPlaylistToDelete.value), rude = true)