From bfeebc141f12ba9752a9546e45821c679213dd62 Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Tue, 19 May 2020 19:38:36 +0200 Subject: [PATCH] invalide options menu after pinning/unpinning. fixes #3745 --- .../java/eu/siacs/conversations/ui/ConversationFragment.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/eu/siacs/conversations/ui/ConversationFragment.java b/src/main/java/eu/siacs/conversations/ui/ConversationFragment.java index 2d9e276af..9dd3b0153 100644 --- a/src/main/java/eu/siacs/conversations/ui/ConversationFragment.java +++ b/src/main/java/eu/siacs/conversations/ui/ConversationFragment.java @@ -1313,6 +1313,7 @@ public class ConversationFragment extends XmppFragment implements EditMessage.Ke final boolean pinned = conversation.getBooleanAttribute(Conversation.ATTRIBUTE_PINNED_ON_TOP, false); conversation.setAttribute(Conversation.ATTRIBUTE_PINNED_ON_TOP, !pinned); activity.xmppConnectionService.updateConversation(conversation); + activity.invalidateOptionsMenu(); } private void checkPermissionAndTriggerAudioCall() {