From 251513c9dc6fe475d7345208b7175477b601b3cc Mon Sep 17 00:00:00 2001 From: Christian Schneppe Date: Wed, 6 Mar 2019 21:51:40 +0100 Subject: copy intent extras in eventreceiver --- src/main/java/de/pixart/messenger/services/EventReceiver.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/main') diff --git a/src/main/java/de/pixart/messenger/services/EventReceiver.java b/src/main/java/de/pixart/messenger/services/EventReceiver.java index 145c9893b..ff501c5af 100644 --- a/src/main/java/de/pixart/messenger/services/EventReceiver.java +++ b/src/main/java/de/pixart/messenger/services/EventReceiver.java @@ -3,6 +3,7 @@ package de.pixart.messenger.services; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; +import android.os.Bundle; import android.preference.PreferenceManager; import android.util.Log; @@ -19,6 +20,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"); } -- cgit v1.2.3