Merge pull request #2773 from kriztan/patch-1
fixed crash on receiving files
This commit is contained in:
commit
9fcf8347f6
|
@ -445,8 +445,8 @@ public class NotificationService {
|
||||||
if (addedActionsCount < 3) {
|
if (addedActionsCount < 3) {
|
||||||
Message firstDownloadableMessage = getFirstDownloadableMessage(messages);
|
Message firstDownloadableMessage = getFirstDownloadableMessage(messages);
|
||||||
if (firstDownloadableMessage != null) {
|
if (firstDownloadableMessage != null) {
|
||||||
String label = mXmppConnectionService.getResources().getString(R.string.download_x_file, UIHelper.getFileDescriptionString(mXmppConnectionService, message));
|
String label = mXmppConnectionService.getResources().getString(R.string.download_x_file, UIHelper.getFileDescriptionString(mXmppConnectionService, firstDownloadableMessage));
|
||||||
PendingIntent pendingDownloadIntent = createDownloadIntent(message);
|
PendingIntent pendingDownloadIntent = createDownloadIntent(firstDownloadableMessage);
|
||||||
NotificationCompat.Action downloadAction = new NotificationCompat.Action.Builder(
|
NotificationCompat.Action downloadAction = new NotificationCompat.Action.Builder(
|
||||||
R.drawable.ic_file_download_white_24dp,
|
R.drawable.ic_file_download_white_24dp,
|
||||||
label,
|
label,
|
||||||
|
|
Loading…
Reference in a new issue