Avoid detecting gallery URL copied from share menu

This commit is contained in:
FooIbar committed 2023-12-31 14:10:16 +08:00
1 parent fbb030ec8e
commit 9eb606810f
1 file changed
+7 -1
@@ -1136,7 +1136,13 @@ fun GalleryDetailScreen(args: GalleryDetailScreenArgs, navigator: DestinationsNa
contentDescription = null,
)
}
IconButton(onClick = { AppHelper.share(activity, galleryDetailUrl) }) {
IconButton(
onClick = {
AppHelper.share(activity, galleryDetailUrl)
// In case the link is copied to the clipboard
Settings.clipboardTextHashCode = galleryDetailUrl.hashCode()
},
) {
Icon(
imageVector = Icons.Default.Share,
contentDescription = null,