diff --git a/app/src/main/kotlin/com/hippo/ehviewer/ui/scene/GalleryCommentsFragment.kt b/app/src/main/kotlin/com/hippo/ehviewer/ui/scene/GalleryCommentsFragment.kt index 933bee4c6..7e8b0371b 100644 --- a/app/src/main/kotlin/com/hippo/ehviewer/ui/scene/GalleryCommentsFragment.kt +++ b/app/src/main/kotlin/com/hippo/ehviewer/ui/scene/GalleryCommentsFragment.kt @@ -284,7 +284,10 @@ fun GalleryCommentsScreen(galleryDetail: GalleryDetail, navigator: NavController if (!commenting) { FloatingActionButton( onClick = { - commentId = -1L + if (commentId != -1L) { + commentId = -1L + userComment = TextFieldValue() + } commenting = true }, ) {