Merge pull request #1580 from bemusementpark/fix-send-seed-dialog
[QA-31] Fix dialog not shown on seed send attemptpull/1581/head
commit
32dbea1a5e
@ -1,23 +0,0 @@
|
|||||||
package org.thoughtcrime.securesms.conversation.v2.dialogs
|
|
||||||
|
|
||||||
import android.app.Dialog
|
|
||||||
import android.os.Bundle
|
|
||||||
import androidx.fragment.app.DialogFragment
|
|
||||||
import network.loki.messenger.R
|
|
||||||
import org.thoughtcrime.securesms.createSessionDialog
|
|
||||||
|
|
||||||
/** Shown if the user is about to send their recovery phrase to someone. */
|
|
||||||
class SendSeedDialog(private val proceed: (() -> Unit)? = null) : DialogFragment() {
|
|
||||||
|
|
||||||
override fun onCreateDialog(savedInstanceState: Bundle?): Dialog = createSessionDialog {
|
|
||||||
title(R.string.dialog_send_seed_title)
|
|
||||||
text(R.string.dialog_send_seed_explanation)
|
|
||||||
button(R.string.dialog_send_seed_send_button_title) { send() }
|
|
||||||
cancelButton()
|
|
||||||
}
|
|
||||||
|
|
||||||
private fun send() {
|
|
||||||
proceed?.invoke()
|
|
||||||
dismiss()
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue