Переглянути джерело

Merge pull request #865 from ente-io/fix_ios_sim

Vishnu Mohandas 2 роки тому
батько
коміт
f0bbb300ed
1 змінених файлів з 4 додано та 0 видалено
  1. 4 0
      lib/app.dart

+ 4 - 0
lib/app.dart

@@ -41,6 +41,10 @@ class _EnteAppState extends State<EnteApp> with WidgetsBindingObserver {
   }
 
   Future<bool> initIntentAction() async {
+    if (!Platform.isAndroid) {
+      AppLifecycleService.instance.setIntentAction(IntentAction.main);
+      return true;
+    }
     IntentAction intentAction = IntentAction.main;
     try {
       final actionResult = await _mediaExtensionPlugin.getIntentAction();