mirror of
https://github.com/element-hq/element-android
synced 2024-11-27 03:48:12 +03:00
Make verification dialog cancelable.
This commit is contained in:
parent
1787031cc6
commit
e5801a4f19
1 changed files with 7 additions and 1 deletions
|
@ -17,6 +17,7 @@ package im.vector.app.features.crypto.verification
|
||||||
|
|
||||||
import android.app.Activity
|
import android.app.Activity
|
||||||
import android.app.Dialog
|
import android.app.Dialog
|
||||||
|
import android.content.DialogInterface
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
import android.os.Parcelable
|
import android.os.Parcelable
|
||||||
import android.view.KeyEvent
|
import android.view.KeyEvent
|
||||||
|
@ -85,7 +86,7 @@ class VerificationBottomSheet : VectorBaseBottomSheetDialogFragment<BottomSheetV
|
||||||
}
|
}
|
||||||
|
|
||||||
init {
|
init {
|
||||||
isCancelable = false
|
isCancelable = true
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
|
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
|
||||||
|
@ -396,6 +397,11 @@ class VerificationBottomSheet : VectorBaseBottomSheetDialogFragment<BottomSheetV
|
||||||
|
|
||||||
const val WAITING_SELF_VERIF_TAG: String = "WAITING_SELF_VERIF_TAG"
|
const val WAITING_SELF_VERIF_TAG: String = "WAITING_SELF_VERIF_TAG"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override fun onCancel(dialog: DialogInterface) {
|
||||||
|
super.onCancel(dialog)
|
||||||
|
viewModel.confirmCancel()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// fun View.getParentCoordinatorLayout(): CoordinatorLayout? {
|
// fun View.getParentCoordinatorLayout(): CoordinatorLayout? {
|
||||||
|
|
Loading…
Reference in a new issue