Timeline refactor (#2175)
* Move Timeline files into their own package * Introduce TimelineViewModel, add coroutines * Simplify StatusViewData * Handle timeilne fetch errors * Rework filters, fix ViewThreadFragment * Fix NotificationsFragment * Simplify Notifications and Thread, handle pin * Redo loading in TimelineViewModel * Improve error handling in TimelineViewModel * Rewrite actions in TimelineViewModel * Apply feedback after timeline factoring review * Handle initial failure in timeline correctly
This commit is contained in:
parent
0a992480c2
commit
44a5b42cac
58 changed files with 3956 additions and 3618 deletions
|
|
@ -47,13 +47,13 @@ class ConversationLineItemDecoration(private val context: Context) : RecyclerVie
|
|||
val dividerBottom: Int
|
||||
if (current != null) {
|
||||
val above = adapter.getItem(position - 1)
|
||||
dividerTop = if (above != null && above.id == current.inReplyToId) {
|
||||
dividerTop = if (above != null && above.id == current.status.inReplyToId) {
|
||||
child.top
|
||||
} else {
|
||||
child.top + avatarMargin
|
||||
}
|
||||
val below = adapter.getItem(position + 1)
|
||||
dividerBottom = if (below != null && current.id == below.inReplyToId &&
|
||||
dividerBottom = if (below != null && current.id == below.status.inReplyToId &&
|
||||
adapter.detailedStatusPosition != position) {
|
||||
child.bottom
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue