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