Skip to content
This repository was archived by the owner on Dec 29, 2025. It is now read-only.

Commit 3d9b8d4

Browse files
authored
Update LibsManager.java
1 parent 179dd01 commit 3d9b8d4

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/main/java/id.my.alvinq.prokitid.app/libs/LibsManager.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,16 @@ public void loadLib(File file) {
4848
try {
4949
copyFolderFromJar(file.getAbsolutePath(), "native", libPath);
5050
dcl = new DexClassLoader(file.getAbsolutePath(),this.cDir.getAbsolutePath(),libPath.getAbsolutePath(),this.context.getClassLoader());
51+
invokeM(dcl, file);
52+
return;
5153
} catch (IOException e) {}
5254
} else {
5355
dcl = new DexClassLoader(file.getAbsolutePath(),this.cDir.getAbsolutePath(),null,this.context.getClassLoader());
56+
invokeM(dcl, file);
57+
return;
5458
}
55-
59+
}
60+
private static void invokeM(DexClassLoader dcl, File file) {
5661
String className = getMainClassFromManifest(file);
5762
if (className == null) {
5863
Logger.get().error("main class tidak ditemukan di manifest.json di jar: " + file.getName());

0 commit comments

Comments
 (0)