aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/main/java/de/pixart/messenger/services/EventReceiver.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/java/de/pixart/messenger/services/EventReceiver.java b/src/main/java/de/pixart/messenger/services/EventReceiver.java
index cdd1afe19..e4ec8cdb7 100644
--- a/src/main/java/de/pixart/messenger/services/EventReceiver.java
+++ b/src/main/java/de/pixart/messenger/services/EventReceiver.java
@@ -22,7 +22,11 @@ public class EventReceiver extends BroadcastReceiver {
}
final String action = intent.getAction();
if (action.equals("ui") || hasEnabledAccounts(context)) {
- context.startService(mIntentForService);
+ try {
+ context.startService(mIntentForService);
+ } catch (RuntimeException e) {
+ Log.d(Config.LOGTAG, "EventReceiver was unable to start service");
+ }
} else {
Log.d(Config.LOGTAG, "EventReceiver ignored action " + mIntentForService.getAction());
}