Skip to content

Commit

Permalink
fix setAnimationDuration doesn´t work for open event bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksandr Zaycev committed Nov 25, 2015
1 parent dc4c4f9 commit b3e48a9
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,8 @@ private void toggleIsMenuOpen() {

public void setAnimationDuration(int durationMillis) {
mAnimationDurationMilis = durationMillis;
mAnimatorSetShowMenu.setDuration(mAnimationDurationMilis);
mAnimatorSetHideMenu.setDuration(mAnimationDurationMilis);
}

private Animator.AnimatorListener mCloseOpenAnimatorListener = new Animator.AnimatorListener() {
Expand Down

0 comments on commit b3e48a9

Please sign in to comment.