Convert file save toast string to plural

Closes #5961
// FREEBIE
pull/1/head
FeuRenard 8 years ago committed by Moxie Marlinspike
parent 47f1f0b9a0
commit cde92256a6

@ -167,7 +167,10 @@
<item quantity="one">Error while saving attachment to storage!</item>
<item quantity="other">Error while saving attachments to storage!</item>
</plurals>
<string name="ConversationFragment_file_saved_successfully">File saved successfully.</string>
<plurals name="ConversationFragment_files_saved_successfully">
<item quantity="one">File saved successfully.</item>
<item quantity="other">Files saved successfully.</item>
</plurals>
<string name="ConversationFragment_unable_to_write_to_sd_card_exclamation">Unable to write to storage!</string>
<plurals name="ConversationFragment_saving_n_attachments">
<item quantity="one">Saving attachment</item>

@ -112,8 +112,10 @@ public class SaveAttachmentTask extends ProgressDialogAsyncTask<SaveAttachmentTa
Toast.LENGTH_LONG).show();
break;
case SUCCESS:
Toast.makeText(context, R.string.ConversationFragment_file_saved_successfully,
Toast.LENGTH_LONG).show();
Toast.makeText(context,
context.getResources().getQuantityText(R.plurals.ConversationFragment_files_saved_successfully,
attachmentCount),
Toast.LENGTH_LONG).show();
break;
case WRITE_ACCESS_FAILURE:
Toast.makeText(context, R.string.ConversationFragment_unable_to_write_to_sd_card_exclamation,

Loading…
Cancel
Save