From 1ad99413552dc3550b9286cdc3d8ff72d6c77a11 Mon Sep 17 00:00:00 2001 From: NekoInverter <7741672-NekoInverter@users.noreply.gitlab.com> Date: Sun, 10 Jan 2021 18:54:12 +0800 Subject: [PATCH] Add link to shared image --- app/src/main/java/com/hippo/ehviewer/ui/GalleryActivity.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/com/hippo/ehviewer/ui/GalleryActivity.java b/app/src/main/java/com/hippo/ehviewer/ui/GalleryActivity.java index 8824031a3..48f37757e 100644 --- a/app/src/main/java/com/hippo/ehviewer/ui/GalleryActivity.java +++ b/app/src/main/java/com/hippo/ehviewer/ui/GalleryActivity.java @@ -65,6 +65,7 @@ import com.hippo.ehviewer.AppConfig; import com.hippo.ehviewer.BuildConfig; import com.hippo.ehviewer.R; import com.hippo.ehviewer.Settings; +import com.hippo.ehviewer.client.EhUrl; import com.hippo.ehviewer.client.data.GalleryInfo; import com.hippo.ehviewer.gallery.ArchiveGalleryProvider; import com.hippo.ehviewer.gallery.DirGalleryProvider; @@ -809,6 +810,7 @@ public class GalleryActivity extends EhActivity implements SeekBar.OnSeekBarChan intent.setAction(Intent.ACTION_SEND); intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION); intent.putExtra(Intent.EXTRA_STREAM, uri); + intent.putExtra(Intent.EXTRA_TEXT, EhUrl.getGalleryDetailUrl(mGalleryInfo.gid, mGalleryInfo.token)); intent.setDataAndType(uri, getContentResolver().getType(uri)); try {