Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mob][photos] Change names and copy

ashilkn482239ce8d1e
diff --git a/mobile/lib/ui/viewer/actions/file_selection_actions_widget.dart b/mobile/lib/ui/viewer/actions/file_selection_actions_widget.dart
index e4510b0918..ed50b9b674 100644
--- a/mobile/lib/ui/viewer/actions/file_selection_actions_widget.dart
+++ b/mobile/lib/ui/viewer/actions/file_selection_actions_widget.dart
@@ -169,8 +169,8 @@ class _FileSelectionActionsWidgetState
items.add(
SelectionActionButton(
icon: Icons.navigation_rounded,
- labelText: S.of(context).shareLink,
- onTap: anyUploadedFiles ? _onCreateLinkTapped : null,
+ labelText: S.of(context).sendLink,
+ onTap: anyUploadedFiles ? _onSendLinkTapped : null,
shouldShow: ownedFilesCount > 0,
),
);
@@ -623,7 +623,7 @@ class _FileSelectionActionsWidgetState
return path;
}
- Future<String?> _selectedFilesPlaceholderPath(
+ Future<String?> _createPlaceholder(
List<EnteFile> ownedSelectedFiles,
) async {
final Widget imageWidget = LinkPlaceholder(
@@ -643,7 +643,7 @@ class _FileSelectionActionsWidgetState
return onCreatedPlaceholderPath;
}
- Future<void> _onCreateLinkTapped() async {
+ Future<void> _onSendLinkTapped() async {
if (split.ownedByCurrentUser.isEmpty) {
showShortToast(
context,
@@ -661,7 +661,7 @@ class _FileSelectionActionsWidgetState
.createSharedCollectionLink(context, split.ownedByCurrentUser);
final List<EnteFile> ownedSelectedFiles = split.ownedByCurrentUser;
- placeholderPath = await _selectedFilesPlaceholderPath(ownedSelectedFiles);
+ placeholderPath = await _createPlaceholder(ownedSelectedFiles);
await dialog.hide();
await _sendLink();
widget.selectedFiles.clearAll();