Skip to content
This repository has been archived by the owner on Jan 13, 2020. It is now read-only.

Commit

Permalink
* fix potential out of memory exception
Browse files Browse the repository at this point in the history
  • Loading branch information
mikepenz committed Feb 11, 2015
1 parent c129f03 commit 2db7cb8
Showing 1 changed file with 13 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -736,22 +736,23 @@ public void onAnimationEnd(Animator animation) {

@Override
public void onAnimationEnd(Animator animation) {

ViewPropertyAnimator hideFabAnimator = Utils.hideViewByScaleY(mTitleContainer);
hideFabAnimator.setListener(new CustomAnimatorListener() {

@Override
public void onAnimationEnd(Animator animation) {

super.onAnimationEnd(animation);
coolBack();
}
});
try {
ViewPropertyAnimator hideFabAnimator = Utils.hideViewByScaleY(mTitleContainer);
hideFabAnimator.setListener(new CustomAnimatorListener() {
@Override
public void onAnimationEnd(Animator animation) {
super.onAnimationEnd(animation);
coolBack();
}
});
} catch (Exception ex) {
super.onAnimationEnd(animation);
coolBack();
}
}
});

hideFabAnimator.start();

super.onAnimationEnd(animation);
}
})
Expand Down

0 comments on commit 2db7cb8

Please sign in to comment.