@Override
 public void onResume() {
   super.onResume();
   mDrawerToggle.setDrawerIndicatorEnabled(true);
 }
 // METHOD SETS ICON ON ACTIONBAR TO "BACK ICON" TO PREVENT CHILD FRAGMENTS FROM
 // OVERLAYING PARENT FRAGMENTS
 private void setActionBarArrowDependingOnFragmentsBackStack() {
   int backStackEntryCount = getSupportFragmentManager().getBackStackEntryCount();
   boolean shouldEnableDrawerIndicator = backStackEntryCount == 0;
   mDrawerToggle.setDrawerIndicatorEnabled(shouldEnableDrawerIndicator);
 }
Beispiel #3
0
 void setHomeAsDrawer(final boolean value) {
   mDrawerToggle.setDrawerIndicatorEnabled(value);
 }
 /** Toggles between using up button or navigation drawer icon by setting the DrawerListener */
 void setDrawerIndicatorEnabled(final boolean showUpButton) {
   mShowHomeAsUp = showUpButton;
   mDrawerToggle.setDrawerIndicatorEnabled(!showUpButton);
 }