Verified Commit 7895cc7e authored by Francisco Cunha's avatar Francisco Cunha Committed by Hussein

P4A-930 - Initialize currentAttachmentViewInfo when onSaveAttachment()

parent 4d5c92f4
......@@ -1012,13 +1012,14 @@ public class MessageViewFragment extends PEpFragment implements ConfirmationDial
@Override
public void onViewAttachment(AttachmentViewInfo attachment) {
//TODO: check if we have to download the attachment first
currentAttachmentViewInfo = attachment;
getAttachmentController(attachment).viewAttachment();
}
@Override
public void onSaveAttachment(AttachmentViewInfo attachment) {
//TODO: check if we have to download the attachment first
currentAttachmentViewInfo = attachment;
createPermissionListeners();
if (permissionChecker.hasWriteExternalPermission()) {
getAttachmentController(attachment).saveAttachment();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment