Inappropriate Context Menu within a Fragment
Solved.
The problem was that the activity's onCreateContextMenu
was called.
I just removed super.onCreateContextMenu(menu, v, menuInfo);
from the fragment's onCreateContextMenu
method.
@Override
public void onCreateContextMenu(ContextMenu menu, View v,
ContextMenuInfo menuInfo) {
getActivity().getMenuInflater().inflate(R.menu.fragment_menu, menu);
}
Hope it'll help someone.