diff options
Diffstat (limited to 'adapter/src')
-rw-r--r-- | adapter/src/main/kotlin/ca/allanwang/kau/adapters/ChainedAdapters.kt | 4 | ||||
-rw-r--r-- | adapter/src/main/kotlin/ca/allanwang/kau/animators/BaseItemAnimator.java | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/adapter/src/main/kotlin/ca/allanwang/kau/adapters/ChainedAdapters.kt b/adapter/src/main/kotlin/ca/allanwang/kau/adapters/ChainedAdapters.kt index e1c5c18..2da0cac 100644 --- a/adapter/src/main/kotlin/ca/allanwang/kau/adapters/ChainedAdapters.kt +++ b/adapter/src/main/kotlin/ca/allanwang/kau/adapters/ChainedAdapters.kt @@ -2,6 +2,7 @@ package ca.allanwang.kau.adapters import android.support.v7.widget.LinearLayoutManager import android.support.v7.widget.RecyclerView +import ca.allanwang.kau.utils.withLinearAdapter import com.mikepenz.fastadapter.IItem import com.mikepenz.fastadapter.adapters.HeaderAdapter import com.mikepenz.fastadapter.commons.adapters.FastItemAdapter @@ -55,8 +56,7 @@ class ChainedAdapters<T>(vararg items: Pair<T, SectionAdapter<*>>) { recycler = recyclerView indexStack.push(0) with(recyclerView) { - layoutManager = LinearLayoutManager(context) - adapter = chain.first().second + withLinearAdapter(chain.first().second) addOnScrollListener(object : RecyclerView.OnScrollListener() { override fun onScrolled(rv: RecyclerView, dx: Int, dy: Int) { super.onScrolled(rv, dx, dy) diff --git a/adapter/src/main/kotlin/ca/allanwang/kau/animators/BaseItemAnimator.java b/adapter/src/main/kotlin/ca/allanwang/kau/animators/BaseItemAnimator.java index 69c2cf3..06b8df6 100644 --- a/adapter/src/main/kotlin/ca/allanwang/kau/animators/BaseItemAnimator.java +++ b/adapter/src/main/kotlin/ca/allanwang/kau/animators/BaseItemAnimator.java @@ -485,7 +485,7 @@ public abstract class BaseItemAnimator extends SimpleItemAnimator { public abstract ViewPropertyAnimator changeNewAnimation(ViewHolder holder); /** - * the cleanup method if the animation needs to be stopped. and tro prepare for the next view + * the cleanup method if the animation needs to be stopped. and to prepare for the next view * * @param holder */ |