Show toast warning for duplicate attachments
This commit is contained in:
parent
ecdbc9036a
commit
fedc52adc3
46 changed files with 107 additions and 16 deletions
|
|
@ -907,6 +907,7 @@ class ThreadActivity : SimpleActivity() {
|
|||
|
||||
private fun addAttachment(uri: Uri) {
|
||||
if (getAttachments().any { it.uri.toString() == uri.toString() }) {
|
||||
toast(R.string.duplicate_item_warning)
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue