|
|
|
|
@ -15,6 +15,7 @@
|
|
|
|
|
|
|
|
|
|
package com.keylesspalace.tusky.components.timeline.viewmodel |
|
|
|
|
|
|
|
|
|
import android.util.Log |
|
|
|
|
import androidx.paging.ExperimentalPagingApi |
|
|
|
|
import androidx.paging.LoadType |
|
|
|
|
import androidx.paging.PagingState |
|
|
|
|
@ -106,8 +107,13 @@ class NetworkTimelineRemoteMediator(
|
|
|
|
|
return MediatorResult.Success(endOfPaginationReached = statuses.isEmpty()) |
|
|
|
|
} catch (e: Exception) { |
|
|
|
|
return ifExpected(e) { |
|
|
|
|
Log.w(TAG, "Failed to load timeline", e) |
|
|
|
|
MediatorResult.Error(e) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
companion object { |
|
|
|
|
private const val TAG = "NetworkTimelineRM" |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|