~singpolyma/cheogram-android

1106595cc364aa5e85438de678d095263ee6ceb8 — Stephen Paul Weber 1 year, 2 months ago a4c9e71
index must be <= size
1 files changed, 2 insertions(+), 2 deletions(-)

M src/main/java/eu/siacs/conversations/ui/ConversationsOverviewFragment.java
M src/main/java/eu/siacs/conversations/ui/ConversationsOverviewFragment.java => src/main/java/eu/siacs/conversations/ui/ConversationsOverviewFragment.java +2 -2
@@ 371,9 371,9 @@ public class ConversationsOverviewFragment extends XmppFragment {
	@Override
	public boolean onContextItemSelected(MenuItem item) {
		int pos = ((AdapterContextMenuInfo) item.getMenuInfo()).position;
		if (conversations == null || conversations.size() < pos || pos < 0) return false;
		if (conversations == null || conversations.size() <= pos || pos < 0) return false;

		Conversation conversation = conversations.get(((AdapterContextMenuInfo) item.getMenuInfo()).position);
		Conversation conversation = conversations.get(pos);
		ConversationFragment fragment = new ConversationFragment();
		fragment.setHasOptionsMenu(false);
		fragment.onAttach(activity);