TF-4195 Fix cannot label as in tablet
This commit is contained in:
+9
-1
@@ -593,7 +593,7 @@ class EmailActionReactor {
|
|||||||
actions: popupMenuItemEmailActions,
|
actions: popupMenuItemEmailActions,
|
||||||
submenuController: submenuController,
|
submenuController: submenuController,
|
||||||
onActionSelected: (action) {
|
onActionSelected: (action) {
|
||||||
if (action.action != EmailActionType.labelAs) {
|
if (_shouldHandleAction(action.action)) {
|
||||||
handleEmailAction(presentationEmail, action.action);
|
handleEmailAction(presentationEmail, action.action);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -607,6 +607,14 @@ class EmailActionReactor {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool _shouldHandleAction(EmailActionType action) {
|
||||||
|
if (action != EmailActionType.labelAs) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
return PlatformInfo.isWebTouchDevice || PlatformInfo.isMobile;
|
||||||
|
}
|
||||||
|
|
||||||
Widget? _getEmailActionSubmenu({
|
Widget? _getEmailActionSubmenu({
|
||||||
required EmailActionType actionType,
|
required EmailActionType actionType,
|
||||||
required ImagePaths imagePaths,
|
required ImagePaths imagePaths,
|
||||||
|
|||||||
Reference in New Issue
Block a user