Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
Linhome-Android
Commits
544fc2fb
Commit
544fc2fb
authored
Mar 26, 2021
by
Christophe Deschamps
Browse files
Fix method type on default actions
parent
a36928fd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
20 deletions
+21
-20
app/src/main/java/org/linhome/ui/call/CallViewModel.kt
app/src/main/java/org/linhome/ui/call/CallViewModel.kt
+21
-20
No files found.
app/src/main/java/org/linhome/ui/call/CallViewModel.kt
View file @
544fc2fb
...
@@ -187,8 +187,10 @@ class CallViewModel(val call: Call) : ViewModel() {
...
@@ -187,8 +187,10 @@ class CallViewModel(val call: Call) : ViewModel() {
}
}
fun
performAction
(
action
:
Action
)
{
fun
performAction
(
action
:
Action
)
{
device
.
value
?.
also
{
d
->
val
actionMethodType
=
device
.
value
?.
let
{
d-
>
when
(
d
.
actionsMethodType
)
{
d
.
actionsMethodType
}
?:
corePreferences
.
defaultActionsMethodType
when
(
actionMethodType
)
{
"method_dtmf_sip_info"
->
{
"method_dtmf_sip_info"
->
{
coreContext
.
core
.
useInfoForDtmf
=
true
coreContext
.
core
.
useInfoForDtmf
=
true
action
.
code
?.
let
{
call
.
sendDtmfs
(
it
)
}
action
.
code
?.
let
{
call
.
sendDtmfs
(
it
)
}
...
@@ -210,7 +212,6 @@ class CallViewModel(val call: Call) : ViewModel() {
...
@@ -210,7 +212,6 @@ class CallViewModel(val call: Call) : ViewModel() {
}
}
}
}
}
}
}
fun
extendedAccept
()
{
fun
extendedAccept
()
{
call
.
extendedAccept
()
call
.
extendedAccept
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment