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
1 changed files with 1 additions and 1 deletions

View File

@ -1039,7 +1039,7 @@ public class ConversationActivity extends XmppActivity
mPendingFileUris.clear(); mPendingFileUris.clear();
mPendingFileUris.addAll(extractUriFromIntent(data)); mPendingFileUris.addAll(extractUriFromIntent(data));
if (xmppConnectionServiceBound) { 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()); attachFileToConversation(getSelectedConversation(), i.next());
} }
} }