Skip to content

Commit

Permalink
use animation settings in drawer icon
Browse files Browse the repository at this point in the history
  • Loading branch information
CampelloManuel committed Jan 20, 2024
1 parent f832d44 commit eaafdc3
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -659,6 +659,10 @@ public void onDrawerStateChanged(int newState) {
}
};

// this controls only the arrow that rotates on the corner
boolean animate = PreferencesHelper.areAnimationsEnabled(this);
mDrawerToggle.setDrawerSlideAnimationEnabled(animate);

// Set the drawer toggle as the DrawerListener
drawerLayout.setDrawerListener(mDrawerToggle);
}
Expand Down

0 comments on commit eaafdc3

Please sign in to comment.