New languages (#256)
* Remove custom-onnxruntime-arm64.aar * Refactor remaining, hardcoded UI strings into localizable resources and added French and Russian to language list * Fix background auto-advance for Text-to-Speech (TTS)
This commit is contained in:
parent
224d12d1fb
commit
4582b506f3
33 changed files with 940 additions and 488 deletions
|
|
@ -13,6 +13,7 @@ import android.graphics.RectF
|
|||
import android.net.Uri
|
||||
import android.os.Build
|
||||
import com.aryan.reader.FileType
|
||||
import com.aryan.reader.R
|
||||
import io.legere.pdfiumandroid.api.Bookmark
|
||||
import io.legere.pdfiumandroid.suspend.PdfDocumentKt
|
||||
import io.legere.pdfiumandroid.suspend.PdfPageKt
|
||||
|
|
@ -452,7 +453,7 @@ class OpdsStreamDocumentWrapper(
|
|||
textSize = 40f
|
||||
textAlign = Paint.Align.CENTER
|
||||
}
|
||||
canvas.drawText("Page Unavailable", 400f, 600f, paint)
|
||||
canvas.drawText(context.getString(R.string.msg_page_unavailable), 400f, 600f, paint)
|
||||
val stream = java.io.ByteArrayOutputStream()
|
||||
bitmap.compress(Bitmap.CompressFormat.JPEG, 80, stream)
|
||||
return stream.toByteArray()
|
||||
|
|
@ -509,4 +510,4 @@ class OpdsStreamDocumentWrapper(
|
|||
override suspend fun getTableOfContents() = emptyList<Bookmark>()
|
||||
|
||||
override fun close() {}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue