mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 11:28:06 +00:00
Wait 500ms before reloading sound devices
This commit is contained in:
parent
e938105db0
commit
e7a4a24eaf
1 changed files with 5 additions and 3 deletions
|
|
@ -125,7 +125,9 @@ class CoreContext
|
|||
"$TAG Added device [${device.productName}] with ID [${device.id}] and type [${device.type}]"
|
||||
)
|
||||
}
|
||||
core.reloadSoundDevices()
|
||||
|
||||
Log.i("$TAG Reloading sound devices in 500ms")
|
||||
postOnCoreThreadDelayed({ core.reloadSoundDevices() }, 500)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -139,8 +141,8 @@ class CoreContext
|
|||
)
|
||||
}
|
||||
if (telecomManager.getCurrentlyFollowedCalls() <= 0) {
|
||||
Log.i("$TAG No call found in Telecom's CallsManager, reloading sound devices")
|
||||
core.reloadSoundDevices()
|
||||
Log.i("$TAG No call found in Telecom's CallsManager, reloading sound devices in 500ms")
|
||||
postOnCoreThreadDelayed({ core.reloadSoundDevices() }, 500)
|
||||
} else {
|
||||
Log.i(
|
||||
"$TAG At least one active call in Telecom's CallsManager, let it handle the removed device"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue