I have an activity with 2 fragments and drawer. So when i am in fragment i get "Up" icon instead hamburger icon (with the help of setDisplayHomeAsUpEnabled) but the action is still the same - navigation_drawer_open/close. So how to get onBackPressed() instead?
And according to this comment i dont know how to handle the Home/Up by myself because of "automatically handle clicks".
@Override
public boolean onOptionsItemSelected(MenuItem item) {
// Handle action bar item clicks here. The action bar will
// automatically handle clicks on the Home/Up button, so long
// as you specify a parent activity in AndroidManifest.xml.