aboutsummaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2019-03-06 21:51:40 +0100
committerChristian Schneppe <christian@pix-art.de>2019-03-06 21:51:40 +0100
commit251513c9dc6fe475d7345208b7175477b601b3cc (patch)
tree69d28c77d6d3825021536115e407dde56bc32e3c /src/main
parent0449375acea581c157008acc6c03167295eb4cfd (diff)
copy intent extras in eventreceiver
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/de/pixart/messenger/services/EventReceiver.java5
1 files changed, 5 insertions, 0 deletions
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");
}