turn off speaker when call is closed
This commit is contained in:
@ -8,8 +8,8 @@ android {
|
||||
applicationId = 'com.tutpro.baresip'
|
||||
minSdkVersion 21
|
||||
targetSdkVersion 26
|
||||
versionCode = 11
|
||||
versionName = '2.1.1'
|
||||
versionCode = 12
|
||||
versionName = '2.1.2'
|
||||
externalNativeBuild {
|
||||
cmake {
|
||||
cFlags '-DHAVE_INTTYPES_H'
|
||||
|
||||
@ -605,6 +605,12 @@ class MainActivity : AppCompatActivity() {
|
||||
}
|
||||
}
|
||||
if (calls.size == 0) am.mode = AudioManager.MODE_NORMAL
|
||||
if (am.isSpeakerphoneOn) {
|
||||
am.isSpeakerphoneOn = false
|
||||
val speakerIcon = findViewById(R.id.speakerIcon) as ActionMenuItemView
|
||||
speakerIcon.setBackgroundColor(ContextCompat.getColor(applicationContext,
|
||||
R.color.colorPrimary))
|
||||
}
|
||||
}
|
||||
"message" -> {
|
||||
val peer_uri = params[1]
|
||||
|
||||
Reference in New Issue
Block a user