From 58e97e1b88446a57472f520de013179b3fdba88a Mon Sep 17 00:00:00 2001 From: Christian Schneppe Date: Thu, 1 Feb 2018 19:47:26 +0100 Subject: fixed crash on receiving files --- src/main/java/de/pixart/messenger/services/NotificationService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/main/java/de/pixart/messenger/services/NotificationService.java b/src/main/java/de/pixart/messenger/services/NotificationService.java index 646f257f9..4b46e9bd5 100644 --- a/src/main/java/de/pixart/messenger/services/NotificationService.java +++ b/src/main/java/de/pixart/messenger/services/NotificationService.java @@ -453,8 +453,8 @@ public class NotificationService { if (addedActionsCount < 3) { Message firstDownloadableMessage = getFirstDownloadableMessage(messages); if (firstDownloadableMessage != null) { - String label = mXmppConnectionService.getResources().getString(R.string.download_x_file, UIHelper.getFileDescriptionString(mXmppConnectionService, message)); - PendingIntent pendingDownloadIntent = createDownloadIntent(message); + String label = mXmppConnectionService.getResources().getString(R.string.download_x_file, UIHelper.getFileDescriptionString(mXmppConnectionService, firstDownloadableMessage)); + PendingIntent pendingDownloadIntent = createDownloadIntent(firstDownloadableMessage); NotificationCompat.Action downloadAction = new NotificationCompat.Action.Builder( R.drawable.ic_file_download_white_24dp, label, -- cgit v1.2.3