Skip to content

armgit / ente

Public Imported from GitHub
0

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

Fix deprecated Share API usage

laurenspriem4737ed3cf088
diff --git a/mobile/apps/photos/lib/ui/sharing/qr_code_dialog_widget.dart b/mobile/apps/photos/lib/ui/sharing/qr_code_dialog_widget.dart
index e2af9f92c1..89298fb21b 100644
--- a/mobile/apps/photos/lib/ui/sharing/qr_code_dialog_widget.dart
+++ b/mobile/apps/photos/lib/ui/sharing/qr_code_dialog_widget.dart
@@ -45,10 +45,12 @@ class _QrCodeDialogWidgetState extends State<QrCodeDialogWidget> {
);
await file.writeAsBytes(pngBytes);
- await Share.shareXFiles(
- [XFile(file.path)],
- text:
- 'Scan this QR code to view my ${widget.collection.displayName} album on ente',
+ await SharePlus.instance.share(
+ ShareParams(
+ files: [XFile(file.path)],
+ text:
+ 'Scan this QR code to view my ${widget.collection.displayName} album on ente',
+ ),
);
// Close the dialog after sharing is initiated