mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-08-03 18:56:44 -04:00
#1659 Autoload next video - update kiwixlib
This commit is contained in:
parent
305dde2485
commit
9cbc394cd2
@ -91,7 +91,7 @@ object Versions {
|
||||
|
||||
const val core_ktx: String = "1.2.0"
|
||||
|
||||
const val kiwixlib: String = "9.0.1-1"
|
||||
const val kiwixlib: String = "9.1.0"
|
||||
|
||||
const val material: String = "1.1.0-beta02" // available: "1.1.0"
|
||||
|
||||
|
@ -155,15 +155,10 @@ class ZimFileReader constructor(
|
||||
return AssetFileDescriptor(
|
||||
infoPair.parcelFileDescriptor,
|
||||
infoPair.offset,
|
||||
articleSize(uri)
|
||||
jniKiwixReader.getArticleSize(uri)
|
||||
).createInputStream()
|
||||
}
|
||||
|
||||
private fun articleSize(uri: String) = with(JNIKiwixInt()) {
|
||||
jniKiwixReader.getContentPart(uri.filePath, 0, 0, this)
|
||||
value.toLong()
|
||||
}
|
||||
|
||||
@Throws(IOException::class)
|
||||
private fun loadVideoFromCache(uri: String): FileInputStream {
|
||||
return File(
|
||||
|
Loading…
x
Reference in New Issue
Block a user