File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
vector/src/main/java/im/vector/app/features/crypto/verification Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ package im.vector.app.features.crypto.verification
17
17
18
18
import android.app.Activity
19
19
import android.app.Dialog
20
+ import android.content.DialogInterface
20
21
import android.os.Bundle
21
22
import android.os.Parcelable
22
23
import android.view.KeyEvent
@@ -85,7 +86,7 @@ class VerificationBottomSheet : VectorBaseBottomSheetDialogFragment<BottomSheetV
85
86
}
86
87
87
88
init {
88
- isCancelable = false
89
+ isCancelable = true
89
90
}
90
91
91
92
override fun onViewCreated (view : View , savedInstanceState : Bundle ? ) {
@@ -396,6 +397,11 @@ class VerificationBottomSheet : VectorBaseBottomSheetDialogFragment<BottomSheetV
396
397
397
398
const val WAITING_SELF_VERIF_TAG : String = " WAITING_SELF_VERIF_TAG"
398
399
}
400
+
401
+ override fun onCancel (dialog : DialogInterface ) {
402
+ super .onCancel(dialog)
403
+ viewModel.confirmCancel()
404
+ }
399
405
}
400
406
401
407
// fun View.getParentCoordinatorLayout(): CoordinatorLayout? {
You can’t perform that action at this time.
0 commit comments