@Override public boolean onActionItemClicked(ActionMode mode, MenuItem item) { boolean result = false; if (host != null) { result = mHost.performAction(item, getSelectedItemPositions().size()); } if (activeMode != null) { activeMode.finish(); } return result; }
public SentMessagesActionModeListener(final SentMessageFragment host, ListView modeView) { super((ActionBarActivity) host.getActivity(), modeView, R.menu.sent_messages_context_menu); mHost = host; }