TF-369 Fix auto close email when download attachment in browser with small screen

This commit is contained in:
dab246
2022-03-29 16:39:41 +07:00
committed by Dat H. Pham
parent bdd3fac021
commit 3a38d40469
4 changed files with 21 additions and 13 deletions
@@ -450,7 +450,7 @@ class EmailView extends GetView with UserSettingPopupMenuMixin {
..onExpandAttachmentActionClick(() => emailController.toggleDisplayAttachmentsAction())
..onDownloadAttachmentFileActionClick((attachment) {
if (kIsWeb) {
emailController.downloadAttachmentForWeb(attachment);
emailController.downloadAttachmentForWeb(context, attachment);
} else {
if (Platform.isAndroid) {
emailController.downloadAttachments(context, [attachment]);