mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-14 22:30:30 +05:30
Inline DeleteAccountDialog binding field.
This commit is contained in:
parent
3dbf49510a
commit
f8994a08af
@ -17,10 +17,8 @@ import com.google.android.material.dialog.MaterialAlertDialogBuilder
|
|||||||
class DeleteAccountDialog(
|
class DeleteAccountDialog(
|
||||||
private val onLogout: () -> Unit
|
private val onLogout: () -> Unit
|
||||||
) : DialogFragment() {
|
) : DialogFragment() {
|
||||||
private lateinit var binding: DialogDeleteAccountBinding
|
|
||||||
|
|
||||||
override fun onCreateDialog(savedInstanceState: Bundle?): Dialog {
|
override fun onCreateDialog(savedInstanceState: Bundle?): Dialog {
|
||||||
binding = DialogDeleteAccountBinding.inflate(layoutInflater)
|
val binding = DialogDeleteAccountBinding.inflate(layoutInflater)
|
||||||
|
|
||||||
binding.cancelButton.setOnClickListener {
|
binding.cancelButton.setOnClickListener {
|
||||||
dialog?.dismiss()
|
dialog?.dismiss()
|
||||||
|
Loading…
Reference in New Issue
Block a user