aboutsummaryrefslogtreecommitdiffstats
path: root/src/eu/siacs/conversations/services/EventReceiver.java
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel@gultsch.de>2014-03-11 15:44:22 +0100
committerDaniel Gultsch <daniel@gultsch.de>2014-03-11 15:44:22 +0100
commit0d516b060354f577ff52ce2d3bb73f56557b87d1 (patch)
treeb77371f78047f4dcae10a8402c4ba00085cbae68 /src/eu/siacs/conversations/services/EventReceiver.java
parent08023210ba875f3cd088eca2b4b3df7410966344 (diff)
ping stuff
Diffstat (limited to 'src/eu/siacs/conversations/services/EventReceiver.java')
-rw-r--r--src/eu/siacs/conversations/services/EventReceiver.java9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/eu/siacs/conversations/services/EventReceiver.java b/src/eu/siacs/conversations/services/EventReceiver.java
index 99b9f3c7..a13d51f2 100644
--- a/src/eu/siacs/conversations/services/EventReceiver.java
+++ b/src/eu/siacs/conversations/services/EventReceiver.java
@@ -8,11 +8,10 @@ public class EventReceiver extends BroadcastReceiver {
public void onReceive(Context context, Intent intent) {
Intent mIntentForService = new Intent(context,
XmppConnectionService.class);
- mIntentForService.putExtra("ping", intent.getBooleanExtra("ping",false));
- if ((intent.getAction() != null)
- && (intent.getAction()
- .equals("android.intent.action.BOOT_COMPLETED"))) {
-
+ if (intent.getAction() != null) {
+ mIntentForService.setAction(intent.getAction());
+ } else {
+ mIntentForService.setAction("other");
}
context.startService(mIntentForService);
}