This commit is contained in:
kosyak 2023-11-13 22:27:11 +01:00
parent abc42647ae
commit b2556daacd

View file

@ -329,7 +329,10 @@ public class ConversationsOverviewFragment extends XmppFragment {
final MenuItem menuOngoingCall = menu.findItem(R.id.action_ongoing_call);
final MenuItem menuTogglePinned = menu.findItem(R.id.action_toggle_pinned);
Conversation conversation = conversations.get(((AdapterView.AdapterContextMenuInfo) menuInfo).position);
if (menuInfo == null) return;
int pos = ((AdapterView.AdapterContextMenuInfo) menuInfo).position;
if (pos < 0) return;
Conversation conversation = conversations.get(pos);
if (conversation != null) {
if (conversation.getMode() == Conversation.MODE_MULTI) {
menuContactDetails.setVisible(false);