From e1c75476bda875952b9e43cb127b15e54f629238 Mon Sep 17 00:00:00 2001 From: Neeraj Gupta <254676+ua741@users.noreply.github.com> Date: Wed, 15 Feb 2023 15:58:23 +0530 Subject: [PATCH] Shortcircuit call for intent for non-droid devices --- lib/app.dart | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/app.dart b/lib/app.dart index afd59e563..538325b61 100644 --- a/lib/app.dart +++ b/lib/app.dart @@ -41,6 +41,10 @@ class _EnteAppState extends State with WidgetsBindingObserver { } Future initIntentAction() async { + if (!Platform.isAndroid) { + AppLifecycleService.instance.setIntentAction(IntentAction.main); + return true; + } IntentAction intentAction = IntentAction.main; try { final actionResult = await _mediaExtensionPlugin.getIntentAction();