Show attachments after adding attachments

master
M66B 5 days ago
parent f1a78293e4
commit 5791edf3a1

@ -3907,6 +3907,13 @@ public class FragmentCompose extends FragmentBase {
@Override @Override
protected void onExecuted(Bundle args, final Spanned body) { 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 // Update text
if (body != null) if (body != null)
etBody.setText(body); etBody.setText(body);
@ -3957,6 +3964,13 @@ public class FragmentCompose extends FragmentBase {
@Override @Override
protected void onExecuted(Bundle args, ArrayList<UriType> images) { 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) if (images.size() == 0)
return; return;

Loading…
Cancel
Save