fix crash when logging out while on conversations (#2895)
* fix crash when logging out while on conversations * fix code formatting
This commit is contained in:
parent
f6a5510841
commit
ff4ddf90b6
4 changed files with 21 additions and 13 deletions
|
|
@ -0,0 +1,10 @@
|
|||
package com.keylesspalace.tusky.util
|
||||
|
||||
import androidx.paging.PagingSource
|
||||
import androidx.paging.PagingState
|
||||
|
||||
class EmptyPagingSource<T : Any> : PagingSource<Int, T>() {
|
||||
override fun getRefreshKey(state: PagingState<Int, T>): Int? = null
|
||||
|
||||
override suspend fun load(params: LoadParams<Int>): LoadResult<Int, T> = LoadResult.Page(emptyList(), null, null)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue