mirror of
https://github.com/element-hq/element-android
synced 2024-11-23 09:55:40 +03:00
Check if bottom sheet is cancellable.
This commit is contained in:
parent
a12460b09c
commit
4a49f2ff9b
1 changed files with 2 additions and 4 deletions
|
@ -85,10 +85,6 @@ class VerificationBottomSheet : VectorBaseBottomSheetDialogFragment<BottomSheetV
|
|||
return BottomSheetVerificationBinding.inflate(inflater, container, false)
|
||||
}
|
||||
|
||||
init {
|
||||
isCancelable = true
|
||||
}
|
||||
|
||||
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
|
||||
super.onViewCreated(view, savedInstanceState)
|
||||
|
||||
|
@ -211,6 +207,8 @@ class VerificationBottomSheet : VectorBaseBottomSheetDialogFragment<BottomSheetV
|
|||
return@withState
|
||||
}
|
||||
|
||||
isCancelable = state.isVerificationRequired.not()
|
||||
|
||||
// Did the request result in a SAS transaction?
|
||||
if (state.sasTransactionState != null) {
|
||||
when (state.sasTransactionState) {
|
||||
|
|
Loading…
Reference in a new issue