소스 검색

Merge pull request #857 from ente-io/sharing_from_other_app_bug

Neeraj Gupta 2 년 전
부모
커밋
3be8237f21
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      lib/ui/home_widget.dart

+ 3 - 1
lib/ui/home_widget.dart

@@ -176,7 +176,7 @@ class _HomeWidgetState extends State<HomeWidget> {
         });
       }
     });
-    // For sharing images coming from outside the app while the app is in the memory
+    // For sharing images coming from outside the app
     _initMediaShareSubscription();
     WidgetsBinding.instance.addPostFrameCallback(
       (_) => Future.delayed(
@@ -237,6 +237,7 @@ class _HomeWidgetState extends State<HomeWidget> {
   }
 
   void _initMediaShareSubscription() {
+    // For sharing images coming from outside the app while the app is in the memory
     _intentDataStreamSubscription =
         ReceiveSharingIntent.getMediaStream().listen(
       (List<SharedMediaFile> value) {
@@ -253,6 +254,7 @@ class _HomeWidgetState extends State<HomeWidget> {
     ReceiveSharingIntent.getInitialMedia().then((List<SharedMediaFile> value) {
       setState(() {
         _sharedFiles = value;
+        _shouldRenderCreateCollectionSheet = true;
       });
     });
   }