mirror of
https://codeberg.org/anoncontributorxmr/mysu.git
synced 2025-01-17 14:46:32 -07:00
fix #58
This commit is contained in:
parent
16be4da12b
commit
320f3f3146
@ -8,15 +8,13 @@ import android.widget.Button
|
||||
import android.widget.EditText
|
||||
import android.widget.ImageButton
|
||||
import android.widget.Toast
|
||||
import androidx.activity.OnBackPressedCallback
|
||||
import com.google.android.material.bottomsheet.BottomSheetDialogFragment
|
||||
import org.monfluo.wallet.R
|
||||
import org.monfluo.wallet.util.Helper.getClipBoardText
|
||||
import timber.log.Timber
|
||||
|
||||
class PasswordBottomSheetDialog(
|
||||
private val walletPath: String,
|
||||
preventGoingBack: Boolean,
|
||||
private val preventGoingBack: Boolean,
|
||||
private val listener: Listener,
|
||||
) : BottomSheetDialogFragment() {
|
||||
|
||||
@ -24,10 +22,6 @@ class PasswordBottomSheetDialog(
|
||||
private lateinit var unlockButton: Button
|
||||
private lateinit var pastePasswordImageButton: ImageButton
|
||||
|
||||
init {
|
||||
isCancelable = !preventGoingBack
|
||||
}
|
||||
|
||||
override fun onCreateView(
|
||||
inflater: LayoutInflater,
|
||||
container: ViewGroup?,
|
||||
@ -42,6 +36,12 @@ class PasswordBottomSheetDialog(
|
||||
pastePasswordImageButton = view.findViewById(R.id.paste_password_imagebutton)
|
||||
|
||||
bindListeners()
|
||||
|
||||
if (preventGoingBack) {
|
||||
dialog?.setOnDismissListener {
|
||||
requireActivity().finish()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private fun bindListeners() {
|
||||
|
Loading…
Reference in New Issue
Block a user