aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/eu/siacs/conversations/services
diff options
context:
space:
mode:
authorSam Whited <sam@samwhited.com>2015-01-17 09:10:33 -0500
committerSam Whited <sam@samwhited.com>2015-01-17 09:11:04 -0500
commitdfc1cea882b33c7bf27bca5a349377b6ed966a75 (patch)
tree24198055d980451c6ca15f4d2ca8d1ea944bddc5 /src/main/java/eu/siacs/conversations/services
parentbe169215caa26bce5cf707ea7ce8db79da21f8e1 (diff)
Correct the download file string on notifications
Fixes #896
Diffstat (limited to 'src/main/java/eu/siacs/conversations/services')
-rw-r--r--src/main/java/eu/siacs/conversations/services/NotificationService.java7
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)
);
}