From a29a5fd491fa819a14e3a19dc0bba045a2c1b6a3 Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Wed, 27 Feb 2019 14:16:26 +0100 Subject: [PATCH] copy intent extras in eventreceiver --- .../java/eu/siacs/conversations/services/EventReceiver.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/eu/siacs/conversations/services/EventReceiver.java b/src/main/java/eu/siacs/conversations/services/EventReceiver.java index 7de964174..985effc3a 100644 --- a/src/main/java/eu/siacs/conversations/services/EventReceiver.java +++ b/src/main/java/eu/siacs/conversations/services/EventReceiver.java @@ -3,6 +3,7 @@ package eu.siacs.conversations.services; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; +import android.os.Bundle; import android.preference.PreferenceManager; import android.support.v4.content.ContextCompat; import android.util.Log; @@ -20,6 +21,10 @@ public class EventReceiver extends BroadcastReceiver { final Intent intentForService = new Intent(context, XmppConnectionService.class); if (originalIntent.getAction() != null) { intentForService.setAction(originalIntent.getAction()); + final Bundle extras = originalIntent.getExtras(); + if (extras != null) { + intentForService.putExtras(extras); + } } else { intentForService.setAction("other"); }