From 187f2f2e390933352320f94f2302b686e92adc0b Mon Sep 17 00:00:00 2001 From: "B. Petersen" Date: Thu, 30 May 2019 01:21:26 +0200 Subject: [PATCH] do not crash on loading failures --- .../notifications/SingleRecipientNotificationBuilder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org/thoughtcrime/securesms/notifications/SingleRecipientNotificationBuilder.java b/src/org/thoughtcrime/securesms/notifications/SingleRecipientNotificationBuilder.java index a8f07cd00..5297c3f29 100644 --- a/src/org/thoughtcrime/securesms/notifications/SingleRecipientNotificationBuilder.java +++ b/src/org/thoughtcrime/securesms/notifications/SingleRecipientNotificationBuilder.java @@ -76,7 +76,7 @@ public class SingleRecipientNotificationBuilder extends AbstractNotificationBuil .submit(context.getResources().getDimensionPixelSize(android.R.dimen.notification_large_icon_width), context.getResources().getDimensionPixelSize(android.R.dimen.notification_large_icon_height)) .get()); - } catch (InterruptedException | ExecutionException e) { + } catch (Exception e) { Log.w(TAG, e); setLargeIcon(fallbackContactPhoto.asDrawable(context, recipient.getFallbackAvatarColor(context))); }