From 2b95ebede892e9ae5b9a600c28a1bf95a3178164 Mon Sep 17 00:00:00 2001 From: tarsin Date: Sun, 30 Apr 2023 16:41:41 +0800 Subject: [PATCH] Code cleanup --- .../main/java/com/hippo/ehviewer/ui/GalleryInfoBottomSheet.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/java/com/hippo/ehviewer/ui/GalleryInfoBottomSheet.kt b/app/src/main/java/com/hippo/ehviewer/ui/GalleryInfoBottomSheet.kt index e19f17819..d4421fc13 100644 --- a/app/src/main/java/com/hippo/ehviewer/ui/GalleryInfoBottomSheet.kt +++ b/app/src/main/java/com/hippo/ehviewer/ui/GalleryInfoBottomSheet.kt @@ -34,7 +34,6 @@ import androidx.compose.ui.platform.LocalContext import androidx.compose.ui.res.dimensionResource import androidx.compose.ui.res.stringResource import androidx.compose.ui.unit.dp -import com.hippo.ehviewer.EhApplication import com.hippo.ehviewer.R import com.hippo.ehviewer.Settings import com.hippo.ehviewer.UrlOpener @@ -120,7 +119,7 @@ fun GalleryInfoBottomSheet( if (index == INDEX_PARENT) { UrlOpener.openUrl(context, data[index], true) } else { - EhApplication.application.topActivity!! tellClipboardWithToast data[index] + context tellClipboardWithToast data[index] if (index == INDEX_URL) { // Save it to avoid detect the gallery Settings.putClipboardTextHashCode(data[index].hashCode())