From 1cc4fd51835ddf62a837e9b531ca6cbd3bd47620 Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Fri, 1 Mar 2024 10:40:43 -0500 Subject: [PATCH] Closes popup when finished editing. --- .../com/vitorpamplona/amethyst/ui/note/UserProfilePicture.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/vitorpamplona/amethyst/ui/note/UserProfilePicture.kt b/app/src/main/java/com/vitorpamplona/amethyst/ui/note/UserProfilePicture.kt index df856f55e..747b6c2e9 100644 --- a/app/src/main/java/com/vitorpamplona/amethyst/ui/note/UserProfilePicture.kt +++ b/app/src/main/java/com/vitorpamplona/amethyst/ui/note/UserProfilePicture.kt @@ -483,7 +483,10 @@ fun NoteDropDownMenu( if (wantsToEditPost.value) { EditPostView( - onClose = { wantsToEditPost.value = false }, + onClose = { + popupExpanded.value = false + wantsToEditPost.value = false + }, edit = note, accountViewModel = accountViewModel, nav = nav,