TF-1831 Handle system back button in mobile composer

Signed-off-by: dab246 <tdvu@linagora.com>
(cherry picked from commit 6df628bceba7fa8e8b04259b50ff30782a511cab)
This commit is contained in:
dab246
2023-12-09 17:32:49 +07:00
committed by Dat H. Pham
parent 4bfc551a2a
commit 326dded301
4 changed files with 7 additions and 7 deletions
@@ -37,7 +37,7 @@ class ComposerView extends GetWidget<ComposerController> {
responsiveUtils: controller.responsiveUtils,
mobile: MobileContainerView(
keyboardRichTextController: controller.keyboardRichTextController,
onCloseViewAction: () => controller.saveToDraftAndClose(context, canPop: false),
onCloseViewAction: () => controller.saveToDraftAndClose(context),
onClearFocusAction: () => controller.clearFocusEditor(context),
onAttachFileAction: () => controller.isNetworkConnectionAvailable
? controller.openPickAttachmentMenu(
@@ -222,7 +222,7 @@ class ComposerView extends GetWidget<ComposerController> {
),
tablet: TabletContainerView(
keyboardRichTextController: controller.keyboardRichTextController,
onCloseViewAction: () => controller.saveToDraftAndClose(context, canPop: false),
onCloseViewAction: () => controller.saveToDraftAndClose(context),
onClearFocusAction: () => controller.clearFocusEditor(context),
onAttachFileAction: () => controller.isNetworkConnectionAvailable
? controller.openPickAttachmentMenu(