mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-14 22:30:30 +05:30
Inline CreatePlaylistDialog binding field.
This commit is contained in:
parent
43d82bb232
commit
3dbf49510a
@ -18,10 +18,8 @@ import okhttp3.HttpUrl.Companion.toHttpUrlOrNull
|
|||||||
class CreatePlaylistDialog(
|
class CreatePlaylistDialog(
|
||||||
private val onSuccess: () -> Unit = {}
|
private val onSuccess: () -> Unit = {}
|
||||||
) : DialogFragment() {
|
) : DialogFragment() {
|
||||||
private lateinit var binding: DialogCreatePlaylistBinding
|
|
||||||
|
|
||||||
override fun onCreateDialog(savedInstanceState: Bundle?): Dialog {
|
override fun onCreateDialog(savedInstanceState: Bundle?): Dialog {
|
||||||
binding = DialogCreatePlaylistBinding.inflate(layoutInflater)
|
val binding = DialogCreatePlaylistBinding.inflate(layoutInflater)
|
||||||
|
|
||||||
binding.clonePlaylist.setOnClickListener {
|
binding.clonePlaylist.setOnClickListener {
|
||||||
val playlistUrl = binding.playlistUrl.text.toString().toHttpUrlOrNull()
|
val playlistUrl = binding.playlistUrl.text.toString().toHttpUrlOrNull()
|
||||||
|
Loading…
Reference in New Issue
Block a user