add error message on MMS compression failed
This commit is contained in:
parent
0774e0cb0f
commit
2605a61005
3 changed files with 13 additions and 1 deletions
|
|
@ -671,6 +671,13 @@ class ThreadActivity : SimpleActivity() {
|
|||
if (compressedUri != null) {
|
||||
attachmentSelections[originalUriString] = AttachmentSelection(compressedUri, false)
|
||||
loadAttachmentPreview(attachmentView, compressedUri)
|
||||
} else {
|
||||
toast(R.string.compress_error)
|
||||
thread_attachments_wrapper.removeView(attachmentView)
|
||||
attachmentSelections.remove(originalUriString)
|
||||
if (attachmentSelections.isEmpty()) {
|
||||
thread_attachments_holder.beGone()
|
||||
}
|
||||
}
|
||||
checkSendMessageAvailability()
|
||||
attachmentView.thread_attachment_progress.beGone()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue