private void hideToolbarNavigationIcon ( ) { if ( ! displayHomeAsUp ) { ActionBar actionBar = getSupportActionBar ( ) ; if ( actionBar != null ) { actionBar . setDisplayHomeAsUpEnabled ( false ) ; actionBar . setHomeButtonEnabled ( false ) ; } } }
Hides the navigation icon of the activity s toolbar respectively sets it to the previous icon .