Skip to content

Commit

Permalink
abortAnimation
Browse files Browse the repository at this point in the history
  • Loading branch information
zj565061763 committed Apr 3, 2019
1 parent 14f4e81 commit 26bbe0a
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -215,10 +215,9 @@ private void updateViewByState(boolean checked, boolean anim)
if (mIsDebug)
Log.i(getDebugTag(), "updateViewByState " + checked + ":" + startLeft + " -> " + endLeft + " anim:" + anim);

abortAnimation();
if (startLeft != endLeft)
{
abortAnimation();

if (anim)
{
smoothScroll(startLeft, endLeft);
Expand Down

0 comments on commit 26bbe0a

Please sign in to comment.