diff options
author | Sam Whited <sam@samwhited.com> | 2015-01-17 09:10:33 -0500 |
---|---|---|
committer | Sam Whited <sam@samwhited.com> | 2015-01-17 09:11:04 -0500 |
commit | dfc1cea882b33c7bf27bca5a349377b6ed966a75 (patch) | |
tree | 24198055d980451c6ca15f4d2ca8d1ea944bddc5 /src/main/java/eu/siacs/conversations/services/NotificationService.java | |
parent | be169215caa26bce5cf707ea7ce8db79da21f8e1 (diff) |
Correct the download file string on notifications
Fixes #896
Diffstat (limited to '')
-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 efdd2b608..8c3aff16c 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) ); } |