mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-05 00:23:09 +02:00
Show attachments after adding attachments
This commit is contained in:
@@ -3907,6 +3907,13 @@ public class FragmentCompose extends FragmentBase {
|
||||
|
||||
@Override
|
||||
protected void onExecuted(Bundle args, final Spanned body) {
|
||||
// Show attachments
|
||||
boolean hide_attachments = Boolean.TRUE.equals(ibExpanderAttachments.getTag());
|
||||
if (hide_attachments) {
|
||||
ibExpanderAttachments.setTag(null);
|
||||
ownerAttachment.restart();
|
||||
}
|
||||
|
||||
// Update text
|
||||
if (body != null)
|
||||
etBody.setText(body);
|
||||
@@ -3957,6 +3964,13 @@ public class FragmentCompose extends FragmentBase {
|
||||
|
||||
@Override
|
||||
protected void onExecuted(Bundle args, ArrayList<UriType> images) {
|
||||
// Show attachments
|
||||
boolean hide_attachments = Boolean.TRUE.equals(ibExpanderAttachments.getTag());
|
||||
if (hide_attachments) {
|
||||
ibExpanderAttachments.setTag(null);
|
||||
ownerAttachment.restart();
|
||||
}
|
||||
|
||||
if (images.size() == 0)
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user