TF-3759 Always show dot icon when open popup menu of more action in mailbox view
Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
@@ -64,7 +64,7 @@ extension HandleMailboxActionExtension on MailboxController {
|
||||
);
|
||||
}
|
||||
|
||||
void openMailboxContextMenuAction(
|
||||
Future<void> openMailboxContextMenuAction(
|
||||
BuildContext context,
|
||||
RelativeRect position,
|
||||
PresentationMailbox mailbox,
|
||||
@@ -85,9 +85,9 @@ extension HandleMailboxActionExtension on MailboxController {
|
||||
AppLocalizations.of(context),
|
||||
);
|
||||
|
||||
if (contextMenuActions.isEmpty) return;
|
||||
if (contextMenuActions.isEmpty) return Future.value();
|
||||
|
||||
openBottomSheetContextMenuAction(
|
||||
return openBottomSheetContextMenuAction(
|
||||
context: context,
|
||||
itemActions: contextMenuActions,
|
||||
onContextMenuActionClick: (menuAction) => handleMailboxAction(
|
||||
@@ -106,7 +106,7 @@ extension HandleMailboxActionExtension on MailboxController {
|
||||
isSubAddressingSupported,
|
||||
);
|
||||
|
||||
if (popupMenuActions.isEmpty) return;
|
||||
if (popupMenuActions.isEmpty) return Future.value();
|
||||
|
||||
final popupMenuItems = popupMenuActions.map((menuAction) {
|
||||
return PopupMenuItem(
|
||||
@@ -121,7 +121,7 @@ extension HandleMailboxActionExtension on MailboxController {
|
||||
);
|
||||
}).toList();
|
||||
|
||||
openPopupMenuAction(context, position, popupMenuItems);
|
||||
return openPopupMenuAction(context, position, popupMenuItems);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user