diff --git a/app/src/main/java/com/github/libretube/dialogs/DeleteAccountDialog.kt b/app/src/main/java/com/github/libretube/dialogs/DeleteAccountDialog.kt new file mode 100644 index 000000000..b84c6e9c0 --- /dev/null +++ b/app/src/main/java/com/github/libretube/dialogs/DeleteAccountDialog.kt @@ -0,0 +1,85 @@ +package com.github.libretube.dialogs + +import android.app.Dialog +import android.content.Context +import android.os.Bundle +import android.util.TypedValue +import android.widget.Button +import android.widget.EditText +import android.widget.TextView +import android.widget.Toast +import androidx.core.text.HtmlCompat +import androidx.fragment.app.DialogFragment +import androidx.lifecycle.lifecycleScope +import com.github.libretube.R +import com.github.libretube.obj.DeleteUserRequest +import com.github.libretube.util.RetrofitInstance +import com.google.android.material.dialog.MaterialAlertDialogBuilder + +class DeleteAccountDialog : DialogFragment() { + private val TAG = "DeleteAccountDialog" + lateinit var username: EditText + lateinit var password: EditText + override fun onCreateDialog(savedInstanceState: Bundle?): Dialog { + return activity?.let { + val builder = MaterialAlertDialogBuilder(it) + val inflater = requireActivity().layoutInflater + val view = inflater.inflate(R.layout.dialog_delete_account, null) + + view.findViewById