Corrected "added to profile gallery" toast text

This commit is contained in:
David Kaspar 2024-12-30 13:45:02 +01:00
parent f8dd82f592
commit 1231a1483f
2 changed files with 4 additions and 2 deletions

View File

@ -676,10 +676,10 @@ fun ShareImageAction(
text = { Text(stringRes(R.string.add_media_to_gallery)) },
onClick = {
if (videoUri != null) {
var n19 = Nip19Bech32.uriToRoute(postNostrUri)?.entity as? Nip19Bech32.NEvent
val n19 = Nip19Bech32.uriToRoute(postNostrUri)?.entity as? Nip19Bech32.NEvent
if (n19 != null) {
accountViewModel.addMediaToGallery(n19.hex, videoUri, n19.relay[0], blurhash, dim, hash, mimeType) // TODO Whole list or first?
accountViewModel.toast(R.string.image_saved_to_the_gallery, R.string.image_saved_to_the_gallery)
accountViewModel.toast(R.string.media_saved, R.string.media_saved_to_profile_gallery)
}
}

View File

@ -709,6 +709,8 @@
<string name="copy_url_to_clipboard">Copy URL to clipboard</string>
<string name="copy_the_note_id_to_the_clipboard">Copy Note ID to clipboard</string>
<string name="add_media_to_gallery">Add Media to Gallery</string>
<string name="media_saved">Media added</string>
<string name="media_saved_to_profile_gallery">Media added to your Profile Gallery</string>
<string name="created_at">Created at</string>
<string name="rules">Rules</string>