mirror of
https://github.com/deltachat/deltachat-android.git
synced 2025-10-03 09:49:21 +02:00
Fix #1305 An object (image), "shared" to Delta Chat once, appears again forever in Chat editors until app is closed
The problem was that the intent still had the share flag and data. A draft is now initialized (and stays) so that the user can return to sending later.
This commit is contained in:
parent
4b200fab63
commit
51a443a184
1 changed files with 1 additions and 2 deletions
|
@ -548,9 +548,7 @@ public class ConversationActivity extends PassphraseRequiredActionBarActivity
|
|||
|
||||
if (isRelayingMessageContent(this)) {
|
||||
if (isSharing(this)) {
|
||||
dcContext.setDraft(dcChat.getId(), null);
|
||||
attachmentManager.cleanup();
|
||||
composeText.setText("");
|
||||
}
|
||||
finish();
|
||||
return;
|
||||
|
@ -662,6 +660,7 @@ public class ConversationActivity extends PassphraseRequiredActionBarActivity
|
|||
|
||||
private void handleSharing() {
|
||||
ArrayList<Uri> uriList = RelayUtil.getSharedUris(this);
|
||||
RelayUtil.resetRelayingMessageContent(this); // This avoids that the shared text appears again if another chat is opened
|
||||
if (uriList == null) return;
|
||||
if (uriList.size() > 1) {
|
||||
String message = String.format(getString(R.string.share_multiple_attachments), uriList.size());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue