Skip to content

Commit

Permalink
Cancel animation of dimensions when page is detached
Browse files Browse the repository at this point in the history
  • Loading branch information
saket committed Jul 30, 2019
1 parent b70c000 commit 27bc95e
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ abstract class BaseExpandablePageLayout @JvmOverloads constructor(
}
}

override fun onDetachedFromWindow() {
dimensionAnimator.cancel()
super.onDetachedFromWindow()
}

override fun onSizeChanged(w: Int, h: Int, oldw: Int, oldh: Int) {
super.onSizeChanged(w, h, oldw, oldh)

Expand Down

0 comments on commit 27bc95e

Please sign in to comment.