Fixed page share text for invalid chapters

Fixes #1369
This commit is contained in:
Jays2Kings 2022-08-17 15:15:58 -04:00
parent 141658bda5
commit 6bdc1948fc

View file

@ -1452,10 +1452,12 @@ class ReaderActivity : BaseRxActivity<ReaderPresenter>() {
} else {
getString(R.string.page_, page.number)
}
val text = "${manga.title}: ${getString(
R.string.chapter_,
decimalFormat.format(chapter.chapter_number),
)}, $pageNumber"
val text = "${manga.title}: ${if (chapter.isRecognizedNumber) {
getString(R.string.chapter_, decimalFormat.format(chapter.chapter_number))
} else {
chapter.name
}
}, $pageNumber"
val stream = file.getUriCompat(this)
val intent = Intent(Intent.ACTION_SEND).apply {