diff options
author | Daniel Gultsch <daniel@gultsch.de> | 2014-03-11 15:44:22 +0100 |
---|---|---|
committer | Daniel Gultsch <daniel@gultsch.de> | 2014-03-11 15:44:22 +0100 |
commit | 0d516b060354f577ff52ce2d3bb73f56557b87d1 (patch) | |
tree | b77371f78047f4dcae10a8402c4ba00085cbae68 /src/eu/siacs/conversations/services/EventReceiver.java | |
parent | 08023210ba875f3cd088eca2b4b3df7410966344 (diff) |
ping stuff
Diffstat (limited to 'src/eu/siacs/conversations/services/EventReceiver.java')
-rw-r--r-- | src/eu/siacs/conversations/services/EventReceiver.java | 9 |
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 99b9f3c76..a13d51f2b 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); } |