mirror of https://github.com/tuskyapp/Tusky.git
3 changed files with 25 additions and 3 deletions
@ -0,0 +1,11 @@
|
||||
package com.keylesspalace.tusky.components.timeline.viewmodel |
||||
|
||||
import androidx.paging.PagingSource |
||||
import androidx.paging.PagingState |
||||
import com.keylesspalace.tusky.db.TimelineStatusWithAccount |
||||
|
||||
class EmptyTimelinePagingSource : PagingSource<Int, TimelineStatusWithAccount>() { |
||||
override fun getRefreshKey(state: PagingState<Int, TimelineStatusWithAccount>): Int? = null |
||||
|
||||
override suspend fun load(params: LoadParams<Int>): LoadResult<Int, TimelineStatusWithAccount> = LoadResult.Page(emptyList(), null, null) |
||||
} |
||||
Loading…
Reference in new issue