Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
BC
public
linphone-android
Commits
f3eb8219
Commit
f3eb8219
authored
8 months ago
by
Sylvain Berfini
Browse files
Options
Download
Patches
Plain Diff
Fixed stucked in 'wait for encryption' for SRTP & not encrypted calls
parent
a788191e
master
feature/show_unsecure_conversation_event_at_top
feature/use_theme_main_color_for_icon_and_splashscreen
fix/insistent_notification
fix/telecom_default_audio_endpoint
release/6.0
6.1.0-alpha
6.0.0
6.0.0-beta
1 merge request
!1393
Linphone 6.0.0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.idea/codeStyles/Project.xml
+123
-0
.idea/codeStyles/Project.xml
.idea/codeStyles/codeStyleConfig.xml
+5
-0
.idea/codeStyles/codeStyleConfig.xml
app/src/main/java/org/linphone/ui/call/viewmodel/CurrentCallViewModel.kt
+10
-1
...va/org/linphone/ui/call/viewmodel/CurrentCallViewModel.kt
with
138 additions
and
1 deletion
.idea/codeStyles/Project.xml
0 → 100644
+
123
−
0
View file @
f3eb8219
<component
name=
"ProjectCodeStyleConfiguration"
>
<code_scheme
name=
"Project"
version=
"173"
>
<JetCodeStyleSettings>
<option
name=
"CODE_STYLE_DEFAULTS"
value=
"KOTLIN_OFFICIAL"
/>
</JetCodeStyleSettings>
<codeStyleSettings
language=
"XML"
>
<option
name=
"FORCE_REARRANGE_MODE"
value=
"1"
/>
<indentOptions>
<option
name=
"CONTINUATION_INDENT_SIZE"
value=
"4"
/>
</indentOptions>
<arrangement>
<rules>
<section>
<rule>
<match>
<AND>
<NAME>
xmlns:android
</NAME>
<XML_ATTRIBUTE
/>
<XML_NAMESPACE>
^$
</XML_NAMESPACE>
</AND>
</match>
</rule>
</section>
<section>
<rule>
<match>
<AND>
<NAME>
xmlns:.*
</NAME>
<XML_ATTRIBUTE
/>
<XML_NAMESPACE>
^$
</XML_NAMESPACE>
</AND>
</match>
<order>
BY_NAME
</order>
</rule>
</section>
<section>
<rule>
<match>
<AND>
<NAME>
.*:id
</NAME>
<XML_ATTRIBUTE
/>
<XML_NAMESPACE>
http://schemas.android.com/apk/res/android
</XML_NAMESPACE>
</AND>
</match>
</rule>
</section>
<section>
<rule>
<match>
<AND>
<NAME>
.*:name
</NAME>
<XML_ATTRIBUTE
/>
<XML_NAMESPACE>
http://schemas.android.com/apk/res/android
</XML_NAMESPACE>
</AND>
</match>
</rule>
</section>
<section>
<rule>
<match>
<AND>
<NAME>
name
</NAME>
<XML_ATTRIBUTE
/>
<XML_NAMESPACE>
^$
</XML_NAMESPACE>
</AND>
</match>
</rule>
</section>
<section>
<rule>
<match>
<AND>
<NAME>
style
</NAME>
<XML_ATTRIBUTE
/>
<XML_NAMESPACE>
^$
</XML_NAMESPACE>
</AND>
</match>
</rule>
</section>
<section>
<rule>
<match>
<AND>
<NAME>
.*
</NAME>
<XML_ATTRIBUTE
/>
<XML_NAMESPACE>
^$
</XML_NAMESPACE>
</AND>
</match>
<order>
BY_NAME
</order>
</rule>
</section>
<section>
<rule>
<match>
<AND>
<NAME>
.*
</NAME>
<XML_ATTRIBUTE
/>
<XML_NAMESPACE>
http://schemas.android.com/apk/res/android
</XML_NAMESPACE>
</AND>
</match>
<order>
ANDROID_ATTRIBUTE_ORDER
</order>
</rule>
</section>
<section>
<rule>
<match>
<AND>
<NAME>
.*
</NAME>
<XML_ATTRIBUTE
/>
<XML_NAMESPACE>
.*
</XML_NAMESPACE>
</AND>
</match>
<order>
BY_NAME
</order>
</rule>
</section>
</rules>
</arrangement>
</codeStyleSettings>
<codeStyleSettings
language=
"kotlin"
>
<option
name=
"CODE_STYLE_DEFAULTS"
value=
"KOTLIN_OFFICIAL"
/>
</codeStyleSettings>
</code_scheme>
</component>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
.idea/codeStyles/codeStyleConfig.xml
0 → 100644
+
5
−
0
View file @
f3eb8219
<component
name=
"ProjectCodeStyleConfiguration"
>
<state>
<option
name=
"USE_PER_PROJECT_SETTINGS"
value=
"true"
/>
</state>
</component>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
app/src/main/java/org/linphone/ui/call/viewmodel/CurrentCallViewModel.kt
+
10
−
1
View file @
f3eb8219
...
...
@@ -241,7 +241,6 @@ class CurrentCallViewModel @UiThread constructor() : GenericViewModel() {
override
fun
onEncryptionChanged
(
call
:
Call
,
on
:
Boolean
,
authenticationToken
:
String
?)
{
Log
.
i
(
"$TAG Call encryption changed, updating..."
)
updateEncryption
()
callMediaEncryptionModel
.
update
(
call
)
}
override
fun
onAuthenticationTokenVerified
(
call
:
Call
,
verified
:
Boolean
)
{
...
...
@@ -346,6 +345,15 @@ class CurrentCallViewModel @UiThread constructor() : GenericViewModel() {
if
(
corePreferences
.
automaticallyStartCallRecording
)
{
isRecording
.
postValue
(
call
.
params
.
isRecording
)
}
// MediaEncryption None & SRTP won't be notified through onEncryptionChanged callback,
// we have to do it manually to leave the "wait for encryption" state
when
(
call
.
currentParams
.
mediaEncryption
)
{
MediaEncryption
.
SRTP
,
MediaEncryption
.
None
->
{
updateEncryption
()
}
else
->
{}
}
}
}
...
...
@@ -1035,6 +1043,7 @@ class CurrentCallViewModel @UiThread constructor() : GenericViewModel() {
}
}
waitingForEncryptionInfo
.
postValue
(
false
)
callMediaEncryptionModel
.
update
(
currentCall
)
}
@WorkerThread
...
...
This diff is collapsed.
Click to expand it.
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets