mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-17 14:09:17 +01:00
Flip order of previous chapter reader transition text (closes #4608)
This commit is contained in:
parent
bc34d4fa88
commit
cdc5de3f1b
@ -41,13 +41,13 @@ class ReaderTransitionView @JvmOverloads constructor(context: Context, attrs: At
|
|||||||
if (hasPrevChapter) {
|
if (hasPrevChapter) {
|
||||||
binding.upperText.textAlignment = TEXT_ALIGNMENT_TEXT_START
|
binding.upperText.textAlignment = TEXT_ALIGNMENT_TEXT_START
|
||||||
binding.upperText.text = buildSpannedString {
|
binding.upperText.text = buildSpannedString {
|
||||||
bold { append(context.getString(R.string.transition_current)) }
|
|
||||||
append("\n${transition.from.chapter.name}")
|
|
||||||
}
|
|
||||||
binding.lowerText.text = buildSpannedString {
|
|
||||||
bold { append(context.getString(R.string.transition_previous)) }
|
bold { append(context.getString(R.string.transition_previous)) }
|
||||||
append("\n${prevChapter!!.chapter.name}")
|
append("\n${prevChapter!!.chapter.name}")
|
||||||
}
|
}
|
||||||
|
binding.lowerText.text = buildSpannedString {
|
||||||
|
bold { append(context.getString(R.string.transition_current)) }
|
||||||
|
append("\n${transition.from.chapter.name}")
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
binding.upperText.textAlignment = TEXT_ALIGNMENT_CENTER
|
binding.upperText.textAlignment = TEXT_ALIGNMENT_CENTER
|
||||||
binding.upperText.text = context.getString(R.string.transition_no_previous)
|
binding.upperText.text = context.getString(R.string.transition_no_previous)
|
||||||
|
Loading…
Reference in New Issue
Block a user