make sure speaker is off after call is closed

This commit is contained in:
Juha Heinanen
2018-12-13 10:43:43 +02:00
parent fcaabdf610
commit 4a7b3b100b

View File

@ -626,6 +626,10 @@ class MainActivity : AppCompatActivity() {
val speakerIcon = findViewById(R.id.speakerIcon) as ActionMenuItemView
speakerIcon.setBackgroundColor(ContextCompat.getColor(applicationContext,
R.color.colorPrimary))
if (BaresipService.speakerPhone) {
baresipService.setAction("ToggleSpeaker")
startService(baresipService)
}
}
"message" -> {
val peerUri = params[1]