diff options
Diffstat (limited to 'src/main/java/eu/siacs/conversations/services')
-rw-r--r-- | src/main/java/eu/siacs/conversations/services/NotificationService.java | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/main/java/eu/siacs/conversations/services/NotificationService.java b/src/main/java/eu/siacs/conversations/services/NotificationService.java index efdd2b60..8c3aff16 100644 --- a/src/main/java/eu/siacs/conversations/services/NotificationService.java +++ b/src/main/java/eu/siacs/conversations/services/NotificationService.java @@ -264,11 +264,8 @@ public class NotificationService { if ((message = getFirstDownloadableMessage(messages)) != null) { mBuilder.addAction( R.drawable.ic_action_download, - mXmppConnectionService.getResources().getString( - message.getType() == Message.TYPE_IMAGE ? - R.string.download_image : - R.string.download_file - ), + mXmppConnectionService.getResources().getString(R.string.download_x_file, + UIHelper.getFileDescriptionString(mXmppConnectionService, message)), createDownloadIntent(message) ); } |