I changed from the original ActionBar to the AppCompat Toolbar and setSupportActionBar(toolbar). When I am using getSupportActionBar() and setDisplayHomeAsUpEnabled(true) fo
In my case the setHasOptionsMenu(true); wasn't enabled on onCreateView. Hope this helps someone.
setHasOptionsMenu(true);
onCreateView