mirror of
https://github.com/accelforce/Yuito
synced 2024-12-22 21:28:08 +01:00
fix timeline jumping to top when activity is recreated (#2364)
This commit is contained in:
parent
497b434663
commit
73e9338f3c
@ -41,6 +41,10 @@ class TimelinePagingAdapter(
|
||||
)
|
||||
}
|
||||
|
||||
init {
|
||||
stateRestorationPolicy = StateRestorationPolicy.PREVENT_WHEN_EMPTY
|
||||
}
|
||||
|
||||
override fun onCreateViewHolder(viewGroup: ViewGroup, viewType: Int): RecyclerView.ViewHolder {
|
||||
return when (viewType) {
|
||||
VIEW_TYPE_STATUS -> {
|
||||
|
Loading…
Reference in New Issue
Block a user