make sure speaker is off after call is closed
This commit is contained in:
@@ -626,6 +626,10 @@ class MainActivity : AppCompatActivity() {
|
|||||||
val speakerIcon = findViewById(R.id.speakerIcon) as ActionMenuItemView
|
val speakerIcon = findViewById(R.id.speakerIcon) as ActionMenuItemView
|
||||||
speakerIcon.setBackgroundColor(ContextCompat.getColor(applicationContext,
|
speakerIcon.setBackgroundColor(ContextCompat.getColor(applicationContext,
|
||||||
R.color.colorPrimary))
|
R.color.colorPrimary))
|
||||||
|
if (BaresipService.speakerPhone) {
|
||||||
|
baresipService.setAction("ToggleSpeaker")
|
||||||
|
startService(baresipService)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
"message" -> {
|
"message" -> {
|
||||||
val peerUri = params[1]
|
val peerUri = params[1]
|
||||||
|
|||||||
Reference in New Issue
Block a user