fixed sharing multiple images

This commit is contained in:
Daniel Gultsch 2018-01-25 12:48:04 +01:00
parent 676ac32a97
commit 294e19d962

View file

@ -320,7 +320,7 @@ public class ShareWithActivity extends XmppActivity implements XmppConnectionSer
for (Iterator<Uri> i = share.uris.iterator(); i.hasNext(); i.remove()) { for (Iterator<Uri> i = share.uris.iterator(); i.hasNext(); i.remove()) {
final Uri uri = i.next(); final Uri uri = i.next();
delegateUriPermissionsToService(uri); delegateUriPermissionsToService(uri);
xmppConnectionService.attachImageToConversation(conversation, i.next(), attachFileCallback); xmppConnectionService.attachImageToConversation(conversation, uri, attachFileCallback);
} }
} else { } else {
replaceToast(getString(R.string.preparing_file)); replaceToast(getString(R.string.preparing_file));