[Android][Disable work manager] Update the sending queue UI with the new way of manually resend email

(cherry picked from commit e217358ea8ef05eaeaeea0f965151682d8a6f754)
This commit is contained in:
Dat PHAM HOANG
2024-01-11 00:57:29 +07:00
committed by Dat H. Pham
parent 0283698076
commit ad4be01ea2
2 changed files with 3 additions and 19 deletions
@@ -34,16 +34,7 @@ class SendingQueueView extends GetWidget<SendingQueueController> with AppLoaderM
);
}),
const Divider(color: AppColor.colorDividerComposer, height: 1),
if (PlatformInfo.isIOS)
const BannerMessageSendingQueueWidget()
else
Obx(() {
if (!controller.isConnectedNetwork) {
return const BannerMessageSendingQueueWidget();
} else {
return const SizedBox.shrink();
}
}),
const BannerMessageSendingQueueWidget(),
Expanded(child: _buildListSendingEmails(context)),
Obx(() {
if (controller.isAllUnSelected) {
@@ -91,11 +82,7 @@ class SendingQueueView extends GetWidget<SendingQueueController> with AppLoaderM
onLongPressAction: controller.handleOnLongPressAction,
onSelectLeadingAction: controller.toggleSelectionSendingEmail,
onTapAction: (actionType, sendingEmail) {
if (PlatformInfo.isAndroid &&
!controller.isConnectedNetwork &&
sendingEmail.isEditableSupported) {
controller.handleSendingEmailActionType(context, actionType, [sendingEmail]);
} else if (PlatformInfo.isIOS && sendingEmail.isEditableSupported) {
if (PlatformInfo.isMobile && sendingEmail.isEditableSupported) {
controller.handleSendingEmailActionType(context, actionType, [sendingEmail]);
}
});