From 2832de20ea80149258b4c0bec7de2d2dd812dd79 Mon Sep 17 00:00:00 2001 From: Manabu-GT Date: Thu, 13 Nov 2014 03:30:10 +0900 Subject: [PATCH] bug fix for issue #4 --- .../android/expandabletextview/ExpandableTextView.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/src/main/java/com/ms/square/android/expandabletextview/ExpandableTextView.java b/lib/src/main/java/com/ms/square/android/expandabletextview/ExpandableTextView.java index 869c853..ad1227e 100644 --- a/lib/src/main/java/com/ms/square/android/expandabletextview/ExpandableTextView.java +++ b/lib/src/main/java/com/ms/square/android/expandabletextview/ExpandableTextView.java @@ -119,7 +119,10 @@ public void onAnimationStart(Animation animation) { applyAlphaAnimation(mTv, mAnimAlphaStart); } @Override - public void onAnimationEnd(Animation animation) { } + public void onAnimationEnd(Animation animation) { + // clear animation here to avoid repeated applyTransformation() calls + clearAnimation(); + } @Override public void onAnimationRepeat(Animation animation) { } });