Remove dupe strings

This commit is contained in:
Jays2Kings 2021-09-07 12:59:23 -04:00
parent 81fa233dcc
commit 358f50468e
2 changed files with 6 additions and 12 deletions

View file

@ -41,16 +41,16 @@ class ReaderTransitionView @JvmOverloads constructor(context: Context, attrs: At
if (hasPrevChapter) {
binding.upperText.textAlignment = TEXT_ALIGNMENT_TEXT_START
binding.upperText.text = buildSpannedString {
bold { append(context.getString(R.string.transition_previous)) }
bold { append(context.getString(R.string.previous_chapter)) }
append("\n${prevChapter!!.chapter.name}")
}
binding.lowerText.text = buildSpannedString {
bold { append(context.getString(R.string.transition_current)) }
bold { append(context.getString(R.string.current_chapter)) }
append("\n${transition.from.chapter.name}")
}
} else {
binding.upperText.textAlignment = TEXT_ALIGNMENT_CENTER
binding.upperText.text = context.getString(R.string.transition_no_previous)
binding.upperText.text = context.getString(R.string.theres_no_previous_chapter)
}
}
@ -65,16 +65,16 @@ class ReaderTransitionView @JvmOverloads constructor(context: Context, attrs: At
if (hasNextChapter) {
binding.upperText.textAlignment = TEXT_ALIGNMENT_TEXT_START
binding.upperText.text = buildSpannedString {
bold { append(context.getString(R.string.transition_finished)) }
bold { append(context.getString(R.string.finished_chapter)) }
append("\n${transition.from.chapter.name}")
}
binding.lowerText.text = buildSpannedString {
bold { append(context.getString(R.string.transition_next)) }
bold { append(context.getString(R.string.next_chapter)) }
append("\n${nextChapter!!.chapter.name}")
}
} else {
binding.upperText.textAlignment = TEXT_ALIGNMENT_CENTER
binding.upperText.text = context.getString(R.string.transition_no_next)
binding.upperText.text = context.getString(R.string.theres_no_next_chapter)
}
}

View file

@ -483,12 +483,6 @@
<item quantity="one">There is 1 missing chapter</item>
<item quantity="other">There are %d missing chapters</item>
</plurals>
<string name="transition_finished">Finished:</string>
<string name="transition_current">Current:</string>
<string name="transition_next">Next:</string>
<string name="transition_previous">Previous:</string>
<string name="transition_no_next">There\'s no next chapter</string>
<string name="transition_no_previous">There\'s no previous chapter</string>
<!-- Manga details -->
<string name="about_this_">About this %1$s</string>