Corrected "added to profile gallery" toast text
This commit is contained in:
+2
-2
@@ -676,10 +676,10 @@ fun ShareImageAction(
|
|||||||
text = { Text(stringRes(R.string.add_media_to_gallery)) },
|
text = { Text(stringRes(R.string.add_media_to_gallery)) },
|
||||||
onClick = {
|
onClick = {
|
||||||
if (videoUri != null) {
|
if (videoUri != null) {
|
||||||
var n19 = Nip19Bech32.uriToRoute(postNostrUri)?.entity as? Nip19Bech32.NEvent
|
val n19 = Nip19Bech32.uriToRoute(postNostrUri)?.entity as? Nip19Bech32.NEvent
|
||||||
if (n19 != null) {
|
if (n19 != null) {
|
||||||
accountViewModel.addMediaToGallery(n19.hex, videoUri, n19.relay[0], blurhash, dim, hash, mimeType) // TODO Whole list or first?
|
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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -709,6 +709,8 @@
|
|||||||
<string name="copy_url_to_clipboard">Copy URL to clipboard</string>
|
<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="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="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="created_at">Created at</string>
|
||||||
<string name="rules">Rules</string>
|
<string name="rules">Rules</string>
|
||||||
|
|||||||
Reference in New Issue
Block a user