소스 검색

Shortcircuit call for intent for non-droid devices

Neeraj Gupta 2 년 전
부모
커밋
12c65f3d2e
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 {
   Future<bool> initIntentAction() async {
+    if (!Platform.isAndroid) {
+      AppLifecycleService.instance.setIntentAction(IntentAction.main);
+      return true;
+    }
     IntentAction intentAction = IntentAction.main;
     IntentAction intentAction = IntentAction.main;
     try {
     try {
       final actionResult = await _mediaExtensionPlugin.getIntentAction();
       final actionResult = await _mediaExtensionPlugin.getIntentAction();