Skip to content
This repository has been archived by the owner on Jun 9, 2023. It is now read-only.

Fix sharing of an image multiple times #280

Merged
merged 2 commits into from
Jul 22, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

- Show smaller Imgur images when data saving mode enabled ([#256](https://github.com/Tunous/Dawn/pull/256))
- Don't show too small reddit previews ([#264](https://github.com/Tunous/Dawn/pull/264))
- Fix sharing an image multiple times ([#280](https://github.com/Tunous/Dawn/pull/280))

## [0.9.2] - 2020-06-13

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ private PopupMenu createSharePopupMenu() {
// fail to parse images if there's no file format, so we'll have to create a copy.
String imageNameWithExtension = Urls.parseFileNameWithExtension(activeMediaItem.mediaLink().highQualityUrl());
File imageFileWithExtension = new File(imageFile.getParent(), imageNameWithExtension);
Files2.INSTANCE.copy(imageFile, imageFileWithExtension);
if (!imageFileWithExtension.exists()) Files2.INSTANCE.copy(imageFile, imageFileWithExtension);
return imageFileWithExtension;
})
.compose(RxUtils.applySchedulersSingle())
Expand Down