mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-14 22:30:30 +05:30
Hide clone dialog before starting the clone.
This commit is contained in:
parent
38b3de6bed
commit
9a36a832a6
@ -29,6 +29,7 @@ class CreatePlaylistDialog(
|
||||
|
||||
playlistUrl?.queryParameter("list")?.let {
|
||||
lifecycleScope.launch {
|
||||
dialog?.hide()
|
||||
val playlistId = withContext(Dispatchers.IO) {
|
||||
PlaylistsHelper.clonePlaylist(requireContext(), it)
|
||||
}
|
||||
@ -38,7 +39,6 @@ class CreatePlaylistDialog(
|
||||
appContext?.toastFromMainThread(
|
||||
if (playlistId != null) R.string.playlistCloned else R.string.server_error
|
||||
)
|
||||
dismiss()
|
||||
}
|
||||
} ?: run {
|
||||
Toast.makeText(context, R.string.invalid_url, Toast.LENGTH_SHORT).show()
|
||||
|
Loading…
Reference in New Issue
Block a user