fix timeline jumping to top when activity is recreated (#2364)
This commit is contained in:
parent
497b434663
commit
73e9338f3c
1 changed files with 4 additions and 0 deletions
|
@ -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 a new issue