Avoid repeated log messages
This commit is contained in:
@@ -228,9 +228,10 @@ class ConnectionService : ConnectionService() {
|
|||||||
@Deprecated("Deprecated in Java")
|
@Deprecated("Deprecated in Java")
|
||||||
@Suppress("DEPRECATION")
|
@Suppress("DEPRECATION")
|
||||||
override fun onCallAudioStateChanged(state: CallAudioState?) {
|
override fun onCallAudioStateChanged(state: CallAudioState?) {
|
||||||
|
if (state == null || isDisconnecting || getState() == STATE_DISCONNECTED) return
|
||||||
super.onCallAudioStateChanged(state)
|
super.onCallAudioStateChanged(state)
|
||||||
Log.d(TAG, "onCallAudioStateChanged: $state")
|
Log.d(TAG, "onCallAudioStateChanged: $state")
|
||||||
state?.let {
|
state.let {
|
||||||
if (BaresipService.isMicMuted != it.isMuted) {
|
if (BaresipService.isMicMuted != it.isMuted) {
|
||||||
BaresipService.isMicMuted = it.isMuted
|
BaresipService.isMicMuted = it.isMuted
|
||||||
Api.calls_mute(it.isMuted)
|
Api.calls_mute(it.isMuted)
|
||||||
|
|||||||
Reference in New Issue
Block a user