mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 11:28:06 +00:00
Fixed clicking message notification not going into conversation
This commit is contained in:
parent
56d8e64762
commit
1741ed5fe5
2 changed files with 3 additions and 2 deletions
|
|
@ -1405,6 +1405,7 @@ class NotificationsManager @MainThread constructor(private val context: Context)
|
|||
return TaskStackBuilder.create(context).run {
|
||||
addNextIntentWithParentStack(
|
||||
Intent(context, MainActivity::class.java).apply {
|
||||
setAction(Intent.ACTION_MAIN) // Needed as well
|
||||
putExtras(args) // Need to pass args here for Chat extra
|
||||
}
|
||||
)
|
||||
|
|
|
|||
|
|
@ -432,9 +432,9 @@ class MainActivity : GenericActivity() {
|
|||
Log.i(
|
||||
"$TAG Handling intent action [${intent.action}], type [${intent.type}], data [${intent.data}] and has ${if (hasExtra) "extras" else "no extra"}"
|
||||
)
|
||||
if (intent.action == null) return
|
||||
|
||||
when (intent.action) {
|
||||
val action = intent.action ?: return
|
||||
when (action) {
|
||||
Intent.ACTION_SEND -> {
|
||||
handleSendIntent(intent, false)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue