Clear previous comment if it was in edit mode

This commit is contained in:
FooIbar committed 2023-11-15 20:32:52 +08:00
1 parent 9e1cff014d
commit a6e9867596
1 file changed
+4 -1
@@ -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
},
) {