Handle some case about share intent from android phone
This commit is contained in:
+16
@@ -216,6 +216,7 @@ class MailboxDashBoardController extends ReloadableController {
|
||||
@override
|
||||
void onReady() {
|
||||
_registerPendingEmailAddress();
|
||||
_registerPendingEmailContents();
|
||||
_registerPendingFileInfo();
|
||||
_getSessionCurrent();
|
||||
_getAppVersion();
|
||||
@@ -358,6 +359,21 @@ class MailboxDashBoardController extends ReloadableController {
|
||||
});
|
||||
}
|
||||
|
||||
void _registerPendingEmailContents() {
|
||||
_emailReceiveManagerStreamSubscription =
|
||||
_emailReceiveManager.pendingEmailContentInfo.stream.listen((emailContent) {
|
||||
log('MailboxDashBoardController::_registerPendingEmailContents(): ${emailContent?.content}');
|
||||
if (emailContent != null && emailContent.content.isNotEmpty == true) {
|
||||
_emailReceiveManager.clearPendingEmailContent();
|
||||
final arguments = ComposerArguments(
|
||||
emailActionType: EmailActionType.edit,
|
||||
emailContents: [emailContent],
|
||||
mailboxRole: selectedMailbox.value?.role);
|
||||
goToComposer(arguments);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
void _registerPendingFileInfo() {
|
||||
_fileReceiveManagerStreamSubscription =
|
||||
_emailReceiveManager.pendingFileInfo.stream.listen((listFile) {
|
||||
|
||||
Reference in New Issue
Block a user