MaterialDrawer back button in fragment
<p>I use a <code>MaterialDrawer</code> from Mike Penz and i faced with problem.
I have <code>Activity (AppCompat)</code> and <strong>3 Fragmnts</strong>. <code>Activity</code> contain all <code>fragments</code>.
In <code>fragment</code> 2 and 3 i enable Back <code>button</code> in <code>OnCreate</code></p>

<pre><code>((AppCompatActivity)getActivity()).getSupportActionBar().setDisplayHomeAsUpEnabled(true); 
</code></pre>

<p>and in <code>Activity</code></p>

<pre><code>@Override
    public void onBackPressed() {
        if (drawer.isDrawerOpen())
            drawer.closeDrawer();
        if (getFragmentManager().getBackStackEntryCount() == 1) {
            getSupportActionBar().setDisplayHomeAsUpEnabled(false);
            drawer.getActionBarDrawerToggle().syncState();
            getFragmentManager().popBackStack();
        } else if (getFragmentManager().getBackStackEntryCount() &gt; 0)
            getFragmentManager().popBackStack();
        else
            super.onBackPressed();
    }
</code></pre>

<p>When active <code>fragment</code> 2 and 3 <code>click</code> on the <code>Back Button</code> leads to opening <code>Drawer</code> &amp;
How can I disable the call <code>Drawer</code> in the 2 and 3 <code>fragment</code> by pressing the button <code>Back</code>? </p>

<p>When I used a standard <code>Drawer</code> I had a theme with <code>ActionBar</code>, there are no such problems.</p>

<p><strong>UPD</strong> i need click in Toggle Back Button in Toolbar, no smartphone physical button</p>