fixed legacy translation of image received

This commit is contained in:
iNPUTmice 2015-01-19 12:14:30 +01:00
parent e5dffcfb07
commit 4cbf8120f5

View file

@ -296,7 +296,9 @@ public class NotificationService {
bigPictureStyle.setSummaryText(getMergedBodies(tmp)); bigPictureStyle.setSummaryText(getMergedBodies(tmp));
builder.setContentText(UIHelper.getMessagePreview(mXmppConnectionService,tmp.get(0)).first); builder.setContentText(UIHelper.getMessagePreview(mXmppConnectionService,tmp.get(0)).first);
} else { } else {
builder.setContentText(mXmppConnectionService.getString(R.string.image_file)); builder.setContentText(mXmppConnectionService.getString(
R.string.received_x_file,
UIHelper.getFileDescriptionString(mXmppConnectionService,message)));
} }
builder.setStyle(bigPictureStyle); builder.setStyle(bigPictureStyle);
} catch (final FileNotFoundException e) { } catch (final FileNotFoundException e) {