aboutsummaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2019-03-31 11:23:59 +0200
committerChristian Schneppe <christian@pix-art.de>2019-03-31 11:23:59 +0200
commit27f5dc852019bcb4434cecd50e9235dfe34aa620 (patch)
tree36facb5676b5b5271a82ceec1a7180e059850b40 /src/main
parent86ddb138628f1369fe03a2189978f214aa890c45 (diff)
catch exceptions in NotificationService
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/de/pixart/messenger/services/NotificationService.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/main/java/de/pixart/messenger/services/NotificationService.java b/src/main/java/de/pixart/messenger/services/NotificationService.java
index e039dbf36..40c848c66 100644
--- a/src/main/java/de/pixart/messenger/services/NotificationService.java
+++ b/src/main/java/de/pixart/messenger/services/NotificationService.java
@@ -15,6 +15,7 @@ import android.media.AudioAttributes;
import android.media.RingtoneManager;
import android.net.Uri;
import android.os.Build;
+import android.os.DeadSystemException;
import android.os.SystemClock;
import android.preference.PreferenceManager;
import android.support.annotation.RequiresApi;
@@ -961,7 +962,12 @@ public class NotificationService {
}
private PendingIntent createOpenConversationsIntent() {
- return PendingIntent.getActivity(mXmppConnectionService, 0, new Intent(mXmppConnectionService, ConversationsActivity.class), 0);
+ try {
+ return PendingIntent.getActivity(mXmppConnectionService, 0, new Intent(mXmppConnectionService, ConversationsActivity.class), 0);
+ } catch (Exception e) {
+ e.printStackTrace();
+ return null;
+ }
}
void updateErrorNotification() {