mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 11:28:06 +00:00
Prevent crash due to uncaught exception
This commit is contained in:
parent
e5cec2d45c
commit
1a813ee11e
2 changed files with 4 additions and 2 deletions
|
|
@ -47,7 +47,9 @@ class Api31Compatibility {
|
|||
.build()
|
||||
)
|
||||
Log.i("$TAG PiP auto enter has been [${if (enable) "enabled" else "disabled"}]")
|
||||
} catch (ise: IllegalArgumentException) {
|
||||
} catch (iae: IllegalArgumentException) {
|
||||
Log.e("$TAG Can't set PiP params: $iae")
|
||||
} catch (ise: IllegalStateException) {
|
||||
Log.e("$TAG Can't set PiP params: $ise")
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1565,7 +1565,7 @@ class NotificationsManager
|
|||
val pendingIntent = TaskStackBuilder.create(context).run {
|
||||
addNextIntentWithParentStack(
|
||||
Intent(context, MainActivity::class.java).apply {
|
||||
setAction(Intent.ACTION_MAIN) // Needed as well
|
||||
action = Intent.ACTION_MAIN // Needed as well
|
||||
}
|
||||
)
|
||||
getPendingIntent(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue