From 9510c23b65119a9beebbf84a76f058d8323da8ed Mon Sep 17 00:00:00 2001 From: 0xd9a <0xd9a@noreply.codeberg.org> Date: Wed, 25 May 2022 02:03:04 +0530 Subject: [PATCH 1/2] add thread lines also for ancestors --- .../fedilab/android/helper/RecyclerViewThreadLines.kt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/app/fedilab/android/helper/RecyclerViewThreadLines.kt b/app/src/main/java/app/fedilab/android/helper/RecyclerViewThreadLines.kt index 12644720a..9d15720b1 100644 --- a/app/src/main/java/app/fedilab/android/helper/RecyclerViewThreadLines.kt +++ b/app/src/main/java/app/fedilab/android/helper/RecyclerViewThreadLines.kt @@ -3,6 +3,7 @@ package app.fedilab.android.helper import android.content.Context import android.content.res.Resources import android.graphics.Canvas +import android.graphics.Color import android.graphics.DashPathEffect import android.graphics.Paint import android.graphics.Rect @@ -46,20 +47,19 @@ class RecyclerViewThreadLines(context: Context, private val lineInfoList: List 0) lineColors[j - 1] else Color.GRAY // draw lines for below statuses if (j != level && j >= lineInfo.fullLinesStart && j <= lineInfo.fullLinesEnd) c.drawLine(lineStart, lineTop, lineStart, view.bottom.toFloat(), paint) // draw vertical line for current statuses - if (j == level) { + if (j == level && i != 0) { // top the line starts at the middle of the above status if (i > 0) lineTop -= parent.getChildAt(i - 1).height / 2 - 1 // '- 1' is to prevent overlapping with above horizontal line From 33f0b8a4e75251108b812954bb4e95216540163a Mon Sep 17 00:00:00 2001 From: 0xd9a <0xd9a@noreply.codeberg.org> Date: Wed, 25 May 2022 02:23:51 +0530 Subject: [PATCH 2/2] swap boost and favorite buttons --- app/src/main/res/layout/drawer_status.xml | 26 +++++++++++------------ 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/app/src/main/res/layout/drawer_status.xml b/app/src/main/res/layout/drawer_status.xml index 780989532..65a127ccc 100644 --- a/app/src/main/res/layout/drawer_status.xml +++ b/app/src/main/res/layout/drawer_status.xml @@ -427,19 +427,6 @@ android:visibility="gone" tools:ignore="HardcodedText" /> - - + +