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 { } else {
getString(R.string.page_, page.number) getString(R.string.page_, page.number)
} }
val text = "${manga.title}: ${getString( val text = "${manga.title}: ${if (chapter.isRecognizedNumber) {
R.string.chapter_, getString(R.string.chapter_, decimalFormat.format(chapter.chapter_number))
decimalFormat.format(chapter.chapter_number), } else {
)}, $pageNumber" chapter.name
}
}, $pageNumber"
val stream = file.getUriCompat(this) val stream = file.getUriCompat(this)
val intent = Intent(Intent.ACTION_SEND).apply { val intent = Intent(Intent.ACTION_SEND).apply {