fixed with attaching wrong files when returning to activity and background service is still alive

This commit is contained in:
Daniel Gultsch 2015-05-21 05:21:22 +02:00
parent 8064832dca
commit 3cdac228f9

View File

@ -1039,7 +1039,7 @@ public class ConversationActivity extends XmppActivity
mPendingFileUris.clear();
mPendingFileUris.addAll(extractUriFromIntent(data));
if (xmppConnectionServiceBound) {
for(Iterator<Uri> i = mPendingImageUris.iterator(); i.hasNext(); i.remove()) {
for(Iterator<Uri> i = mPendingFileUris.iterator(); i.hasNext(); i.remove()) {
attachFileToConversation(getSelectedConversation(), i.next());
}
}