TF-523: remove unnecessary intent-filter
This commit is contained in:
@@ -78,30 +78,6 @@
|
|||||||
<data android:mimeType="text/*" />
|
<data android:mimeType="text/*" />
|
||||||
</intent-filter>
|
</intent-filter>
|
||||||
|
|
||||||
<intent-filter>
|
|
||||||
<action android:name="android.intent.action.SEND" />
|
|
||||||
<category android:name="android.intent.category.DEFAULT" />
|
|
||||||
<data android:mimeType="image/*" />
|
|
||||||
</intent-filter>
|
|
||||||
|
|
||||||
<intent-filter>
|
|
||||||
<action android:name="android.intent.action.SEND_MULTIPLE" />
|
|
||||||
<category android:name="android.intent.category.DEFAULT" />
|
|
||||||
<data android:mimeType="image/*" />
|
|
||||||
</intent-filter>
|
|
||||||
|
|
||||||
<intent-filter>
|
|
||||||
<action android:name="android.intent.action.SEND" />
|
|
||||||
<category android:name="android.intent.category.DEFAULT" />
|
|
||||||
<data android:mimeType="video/*" />
|
|
||||||
</intent-filter>
|
|
||||||
|
|
||||||
<intent-filter>
|
|
||||||
<action android:name="android.intent.action.SEND_MULTIPLE" />
|
|
||||||
<category android:name="android.intent.category.DEFAULT" />
|
|
||||||
<data android:mimeType="video/*" />
|
|
||||||
</intent-filter>
|
|
||||||
|
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
<action android:name="android.intent.action.SEND" />
|
<action android:name="android.intent.action.SEND" />
|
||||||
<category android:name="android.intent.category.DEFAULT" />
|
<category android:name="android.intent.category.DEFAULT" />
|
||||||
|
|||||||
@@ -1013,7 +1013,21 @@ class ComposerController extends BaseController {
|
|||||||
}
|
}
|
||||||
if (listFileAttachmentSharedMediaFile.isNotEmpty) {
|
if (listFileAttachmentSharedMediaFile.isNotEmpty) {
|
||||||
final listFile = covertListSharedMediaFileToFileInfo(arguments.listSharedMediaFile!);
|
final listFile = covertListSharedMediaFileToFileInfo(arguments.listSharedMediaFile!);
|
||||||
_uploadAttachmentsAction(listFile);
|
if (uploadController.hasEnoughMaxAttachmentSize(listFiles: listFile)) {
|
||||||
|
_uploadAttachmentsAction(listFile);
|
||||||
|
} else {
|
||||||
|
if (currentContext != null) {
|
||||||
|
showConfirmDialogAction(
|
||||||
|
currentContext!,
|
||||||
|
AppLocalizations.of(currentContext!).message_dialog_upload_attachments_exceeds_maximum_size(
|
||||||
|
filesize(mailboxDashBoardController.maxSizeAttachmentsPerEmail?.value ?? 0, 0)),
|
||||||
|
AppLocalizations.of(currentContext!).got_it,
|
||||||
|
() => {},
|
||||||
|
title: AppLocalizations.of(currentContext!).maximum_files_size,
|
||||||
|
hasCancelButton: false,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user