Back button in action bar opening and closing NavDrawer
<p>I have a nav drawer set up in my main activity.  In one of my fragments I want to hide the hamburger icon and show the back arrow (achieved)</p>

<pre><code>   ActionBar bar = mMainActivity.getSupportActionBar();
   bar.setDisplayShowHomeEnabled(true);
   bar.setDisplayHomeAsUpEnabled(true);
   bar.setDefaultDisplayHomeAsUpEnabled(true);
</code></pre>

<p>The problem is if I click on the arrow it opens the drawer.  So I added this: <code>mMainActivity.mActionBarDrawerToggle.setDrawerIndicatorEnabled(false);</code></p>

<p>The problem is when I add this line, nothing displays.  The drawer icon and the back or up icon.  So can anyone tell me what I'm doing wrong.?</p>

<p><strong>EDIT</strong></p>

<p>There seems to be confusion as to what I have done and not done.  The <code>mMainActivity.mActionBarDrawerToggle.setDrawerIndicatorEnabled(false);</code> was added temporarily, I removed it again as when I did, there were no icons displayed neither nav drawer or back arrow.</p>

<p>Below is how I handle my menu item clicks:</p>

<pre><code> @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.

        switch (item.getItemId()){
            case R.id.search_badge:
                L.i("search", "search");
                return false;


            case android.R.id.home:
                L.i("home", "home pressed");
                break;

            case R.id.action_done:

                actionDone();
                //for testing
                //checkSelectedInterests();
                //TODO: MLC
                L.i("done", "done pressed");
                break;

            default:
                ;;
        }
        return super.onOptionsItemSelected(item);
    }
</code></pre>

<p>however</p>

<pre><code> case android.R.id.home:
                L.i("home", "home pressed");
                break;
</code></pre>

<p>is never hit</p>

<p>I hope this clarifies it.  So at the moment the nav drawer icon is hiding and the back arrow is displayed.  When I click the back arrow it opens the nav drawer instead of entering my switch case.</p>