Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[mob] Fix stream cancellation for deeplink

Neeraj Guptadd061e61710c
diff --git a/mobile/lib/ui/tabs/home_widget.dart b/mobile/lib/ui/tabs/home_widget.dart
index 86c52b9365..483d70432a 100644
--- a/mobile/lib/ui/tabs/home_widget.dart
+++ b/mobile/lib/ui/tabs/home_widget.dart
@@ -229,6 +229,9 @@ class _HomeWidgetState extends State<HomeWidget> {
});
});
+ // MediaExtension plugin handles the deeplink for android
+ // [todo 4/Feb/2025]We need to validate if calling this method doesn't break
+ // android deep linking
Platform.isIOS ? _initDeepLinkSubscriptionForPublicAlbums() : null;
// For sharing images coming from outside the app
@@ -426,7 +429,9 @@ class _HomeWidgetState extends State<HomeWidget> {
_collectionUpdatedEvent.cancel();
isOnSearchTabNotifier.dispose();
_pageController.dispose();
- _publicAlbumLinkSubscription.cancel();
+ if (Platform.isIOS) {
+ _publicAlbumLinkSubscription.cancel();
+ }
super.dispose();
}