mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 11:28:06 +00:00
Prevent having two or more ZRTP SAS dialog stacked
This commit is contained in:
parent
fa9bcd3475
commit
e283b7b48e
1 changed files with 8 additions and 0 deletions
|
|
@ -447,6 +447,10 @@ class ActiveCallFragment : GenericCallFragment() {
|
|||
authTokensToListen: List<String>,
|
||||
cacheMismatch: Boolean
|
||||
) {
|
||||
if (zrtpSasDialog != null) {
|
||||
zrtpSasDialog?.dismiss()
|
||||
}
|
||||
|
||||
val model = ZrtpSasConfirmationDialogModel(
|
||||
authTokenToRead,
|
||||
authTokensToListen,
|
||||
|
|
@ -476,6 +480,10 @@ class ActiveCallFragment : GenericCallFragment() {
|
|||
}
|
||||
|
||||
private fun showZrtpAlertDialog(allowTryAgain: Boolean = true) {
|
||||
if (zrtpSasDialog != null) {
|
||||
zrtpSasDialog?.dismiss()
|
||||
}
|
||||
|
||||
val model = ZrtpAlertDialogModel(allowTryAgain)
|
||||
val dialog = DialogUtils.getZrtpAlertDialog(requireActivity(), model)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue