Skip to content

Commit 4cfca56

Browse files
committed
Fix ClassLoader crash on API < 34
Use `Collectors.toList()` instead of Java 16 `Stream.toList()` to fix a `NoSuchMethodError` during module loading.
1 parent 9058485 commit 4cfca56

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

xposed/src/main/kotlin/org/matrix/vector/impl/utils/VectorModuleClassLoader.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import java.nio.ByteBuffer
1515
import java.util.Collections
1616
import java.util.Enumeration
1717
import java.util.jar.JarFile
18+
import java.util.stream.Collectors
1819
import java.util.zip.ZipEntry
1920

2021
/**
@@ -159,7 +160,7 @@ class VectorModuleClassLoader : ByteBufferDexClassLoader {
159160
null
160161
}
161162
}
162-
.toList()
163+
.collect(Collectors.toList())
163164
.filterNotNull()
164165
.toTypedArray()
165166

0 commit comments

Comments
 (0)