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

Commit 21e2de9

Browse files
authored
Update LibsManager.java
1 parent b7cd51b commit 21e2de9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
import org.levimc.launcher.util.Logger;
1212

1313
public class LibsManager {
14-
private final Context context;
15-
private final File cDir;
14+
private static final Context context;
15+
private static final File cDir;
1616
//private final DexClassLoader dcl;
1717
public LibsManager(Context ctx) {
1818
String dirPath = ctx.getDir("alvinqid", Context.MODE_PRIVATE).getAbsolutePath();
@@ -67,7 +67,7 @@ private static void invokeM(DexClassLoader dcl, File file) {
6767
try {
6868
Class<?> clazz = dcl.loadClass(className);
6969
Method method = clazz.getDeclaredMethod("onLoad", Context.class);
70-
method.invoke(null, context); // static method, no instance
70+
method.invoke(null, this.context); // static method, no instance
7171
Logger.get().info("Loaded Class -> " + className + " Done!");
7272
} catch (Exception e) {
7373
Throwable real = e instanceof InvocationTargetException ? ((InvocationTargetException) e).getCause() : e;

0 commit comments

Comments
 (0)