turn off speaker when call is closed
This commit is contained in:
+2
-2
@@ -8,8 +8,8 @@ android {
|
|||||||
applicationId = 'com.tutpro.baresip'
|
applicationId = 'com.tutpro.baresip'
|
||||||
minSdkVersion 21
|
minSdkVersion 21
|
||||||
targetSdkVersion 26
|
targetSdkVersion 26
|
||||||
versionCode = 11
|
versionCode = 12
|
||||||
versionName = '2.1.1'
|
versionName = '2.1.2'
|
||||||
externalNativeBuild {
|
externalNativeBuild {
|
||||||
cmake {
|
cmake {
|
||||||
cFlags '-DHAVE_INTTYPES_H'
|
cFlags '-DHAVE_INTTYPES_H'
|
||||||
|
|||||||
@@ -605,6 +605,12 @@ class MainActivity : AppCompatActivity() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (calls.size == 0) am.mode = AudioManager.MODE_NORMAL
|
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" -> {
|
"message" -> {
|
||||||
val peer_uri = params[1]
|
val peer_uri = params[1]
|
||||||
|
|||||||
Reference in New Issue
Block a user