mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 11:28:06 +00:00
Prevent call overlay exception
This commit is contained in:
parent
5004a26ea6
commit
8449293c65
1 changed files with 6 additions and 2 deletions
|
|
@ -717,8 +717,12 @@ class CoreContext(val context: Context, coreConfig: Config) : LifecycleOwner, Vi
|
|||
onCallOverlayClick()
|
||||
}
|
||||
|
||||
callOverlay = overlay
|
||||
windowManager.addView(overlay, params)
|
||||
try {
|
||||
windowManager.addView(overlay, params)
|
||||
callOverlay = overlay
|
||||
} catch (e: Exception) {
|
||||
Log.e("[Context] Failed to add overlay in windowManager: $e")
|
||||
}
|
||||
}
|
||||
|
||||
fun onCallOverlayClick() {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue