diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 9f2aacbca..49bc95b92 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -47,6 +47,7 @@ android:label="@string/app_name" android:enableOnBackInvokedCallback="true" android:localeConfig="@xml/locales_config" + android:theme="@style/Theme.Linphone" tools:targetApi="35"> diff --git a/app/src/main/java/org/linphone/ui/call/viewmodel/CurrentCallViewModel.kt b/app/src/main/java/org/linphone/ui/call/viewmodel/CurrentCallViewModel.kt index 841148c0e..4ef0fcb2e 100644 --- a/app/src/main/java/org/linphone/ui/call/viewmodel/CurrentCallViewModel.kt +++ b/app/src/main/java/org/linphone/ui/call/viewmodel/CurrentCallViewModel.kt @@ -1000,8 +1000,6 @@ class CurrentCallViewModel @UiThread constructor() : GenericViewModel() { "$TAG Configuring call with remote address [${call.remoteAddress.asStringUriOnly()}] as current" ) contact.value?.destroy() - waitingForEncryptionInfo.postValue(true) - isMediaEncrypted.postValue(false) terminatedByUsed = false zrtpSasValidationAttempts = 0 @@ -1010,6 +1008,13 @@ class CurrentCallViewModel @UiThread constructor() : GenericViewModel() { callMediaEncryptionModel.update(call) call.addListener(callListener) + if (call.currentParams.mediaEncryption == MediaEncryption.None) { + waitingForEncryptionInfo.postValue(true) + isMediaEncrypted.postValue(false) + } else { + updateEncryption() + } + val remoteContactAddress = call.remoteContactAddress val conferenceInfo = if (remoteContactAddress != null) { call.core.findConferenceInformationFromUri(remoteContactAddress)