mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-11-10 07:07:37 +01:00
Correct boolean operation from AND to OR
This commit is contained in:
@@ -296,7 +296,7 @@ private fun saveMediaToGallery(
|
|||||||
localContext: Context,
|
localContext: Context,
|
||||||
accountViewModel: AccountViewModel,
|
accountViewModel: AccountViewModel,
|
||||||
) {
|
) {
|
||||||
val isImage = content is MediaUrlImage && content is MediaLocalImage
|
val isImage = content is MediaUrlImage || content is MediaLocalImage
|
||||||
|
|
||||||
val success = if (isImage) R.string.image_saved_to_the_gallery else R.string.video_saved_to_the_gallery
|
val success = if (isImage) R.string.image_saved_to_the_gallery else R.string.video_saved_to_the_gallery
|
||||||
val failure = if (isImage) R.string.failed_to_save_the_image else R.string.failed_to_save_the_video
|
val failure = if (isImage) R.string.failed_to_save_the_image else R.string.failed_to_save_the_video
|
||||||
|
|||||||
Reference in New Issue
Block a user