Manage toolbar's navigation and back button from fragment to fragment in android
<p>All of my fragments are controlled through <code>ActionBarActivity</code> (<strong>mainActivity</strong>), inside <strong>mainActivity</strong> a <code>DrawerLayout</code> is implemented and all the child fragments are pushed through drawerLayout's list item click. The problem that I'm facing is after pushing a fragment through drawerLayout I want to change the drawer icon into back icon of <code>ToolBar</code> so that user can navigate to previous fragment and to handle the callback of android.R.id.home either inside the same fragment or inside the <strong>mainActivity</strong>.</p>