fixed with attaching wrong files when returning to activity and background service is still alive
This commit is contained in:
parent
8064832dca
commit
3cdac228f9
|
@ -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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue