Skip to content

Commit

Permalink
Merge pull request #5 from danielwilson1702/memory-leak-fix
Browse files Browse the repository at this point in the history
Small memory leak resolved
  • Loading branch information
booncol committed Sep 17, 2016
2 parents 8dbdce4 + f6da1c4 commit 4555bb7
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,16 @@ private static Interpolator createInterpolator(int type) {
}
}

@Override
protected void onDetachedFromWindow() {
super.onDetachedFromWindow();

if (mAnimatorSet != null) {
mAnimatorSet.cancel();
mAnimatorSet = null;
}
}

private class PulseView extends View {

public PulseView(Context context) {
Expand Down

0 comments on commit 4555bb7

Please sign in to comment.