mirror of
https://github.com/vector-im/element-android.git
synced 2024-11-15 01:35:07 +08:00
Make verification dialog cancelable.
This commit is contained in:
parent
1787031cc6
commit
e5801a4f19
@ -17,6 +17,7 @@ package im.vector.app.features.crypto.verification
|
||||
|
||||
import android.app.Activity
|
||||
import android.app.Dialog
|
||||
import android.content.DialogInterface
|
||||
import android.os.Bundle
|
||||
import android.os.Parcelable
|
||||
import android.view.KeyEvent
|
||||
@ -85,7 +86,7 @@ class VerificationBottomSheet : VectorBaseBottomSheetDialogFragment<BottomSheetV
|
||||
}
|
||||
|
||||
init {
|
||||
isCancelable = false
|
||||
isCancelable = true
|
||||
}
|
||||
|
||||
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"
|
||||
}
|
||||
|
||||
override fun onCancel(dialog: DialogInterface) {
|
||||
super.onCancel(dialog)
|
||||
viewModel.confirmCancel()
|
||||
}
|
||||
}
|
||||
|
||||
// fun View.getParentCoordinatorLayout(): CoordinatorLayout? {
|
||||
|
Loading…
Reference in New Issue
Block a user