pull/1120/head 3.21.071520
gedoor 3 years ago
parent abc2d47af7
commit c898d6407e
  1. 4
      app/src/main/java/io/legado/app/help/JsExtensions.kt

@ -292,7 +292,7 @@ interface JsExtensions {
val bos = ByteArrayOutputStream() val bos = ByteArrayOutputStream()
val zis = ZipInputStream(ByteArrayInputStream(bytes)) val zis = ZipInputStream(ByteArrayInputStream(bytes))
var entry: ZipEntry = zis.nextEntry var entry: ZipEntry? = zis.nextEntry
while (entry != null) { while (entry != null) {
if (entry.name.equals(path)) { if (entry.name.equals(path)) {
@ -319,7 +319,7 @@ interface JsExtensions {
val bos = ByteArrayOutputStream() val bos = ByteArrayOutputStream()
val zis = ZipInputStream(ByteArrayInputStream(bytes)) val zis = ZipInputStream(ByteArrayInputStream(bytes))
var entry: ZipEntry = zis.nextEntry var entry: ZipEntry? = zis.nextEntry
while (entry != null) { while (entry != null) {
if (entry.name.equals(path)) { if (entry.name.equals(path)) {
zis.use { it.copyTo(bos) } zis.use { it.copyTo(bos) }

Loading…
Cancel
Save