From f264bc4735e6d1aa9f9683f56b3c5f6e05c5a20b Mon Sep 17 00:00:00 2001 From: Allan Wang Date: Mon, 1 Jul 2019 13:47:41 -0700 Subject: Make noanimatorchange an object, resolves #212 --- adapter/src/main/kotlin/ca/allanwang/kau/animators/NoAnimator.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'adapter') diff --git a/adapter/src/main/kotlin/ca/allanwang/kau/animators/NoAnimator.kt b/adapter/src/main/kotlin/ca/allanwang/kau/animators/NoAnimator.kt index cca8a25..52b6123 100644 --- a/adapter/src/main/kotlin/ca/allanwang/kau/animators/NoAnimator.kt +++ b/adapter/src/main/kotlin/ca/allanwang/kau/animators/NoAnimator.kt @@ -42,7 +42,7 @@ class NoAnimatorRemove(override var itemDelayFactor: Float = 0f) : KauAnimatorRe override fun getDelay(remove: Long, move: Long, change: Long): Long = 0L } -class NoAnimatorChange : KauAnimatorChange { +object NoAnimatorChange : KauAnimatorChange { override fun changeOldAnimation( holder: RecyclerView.ViewHolder, -- cgit v1.2.3