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
linhome-android-old-big-globs
Commits
8ba54be2
Commit
8ba54be2
authored
3 years ago
by
Christophe Deschamps
Browse files
Options
Download
Patches
Plain Diff
Force audio route to speaker on tablets
parent
84516a98
master
develop
No related merge requests found
Pipeline
#28224
passed with stage
in 2 minutes and 37 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/src/main/java/org/linhome/ui/call/CallViewModel.kt
+5
-0
app/src/main/java/org/linhome/ui/call/CallViewModel.kt
with
5 additions
and
0 deletions
app/src/main/java/org/linhome/ui/call/CallViewModel.kt
+
5
−
0
View file @
8ba54be2
...
...
@@ -27,12 +27,14 @@ import kotlinx.coroutines.Dispatchers
import
kotlinx.coroutines.GlobalScope
import
kotlinx.coroutines.delay
import
kotlinx.coroutines.launch
import
org.linhome.LinhomeApplication
import
org.linhome.LinhomeApplication.Companion.coreContext
import
org.linhome.LinhomeApplication.Companion.corePreferences
import
org.linhome.customisation.DeviceTypes
import
org.linhome.entities.Action
import
org.linhome.entities.Device
import
org.linhome.entities.HistoryEvent
import
org.linhome.linphonecore.CoreContext
import
org.linhome.linphonecore.extensions.*
import
org.linhome.store.DeviceStore
import
org.linhome.utils.extensions.existsAndIsNotEmpty
...
...
@@ -113,6 +115,9 @@ class CallViewModel(val call: Call) : ViewModel() {
call
.
requestNotifyNextVideoFrameDecoded
()
}
}
if
(
LinhomeApplication
.
instance
.
tablet
())
{
coreContext
.
core
.
forceSpeakerAudioRoute
()
}
}
private
fun
fireActionsOnCallStateChanged
(
cstate
:
Call
.
State
)
{
...
...
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