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

Commit 63af5b7

Browse files
authored
Update Libs.java
1 parent 35ae599 commit 63af5b7

File tree

1 file changed

+3
-21
lines changed
  • src/main/java/id.my.alvinq.prokitid.libs

1 file changed

+3
-21
lines changed

src/main/java/id.my.alvinq.prokitid.libs/Libs.java

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,31 +2,13 @@
22

33
import android.widget.Toast;
44
import android.content.Context;
5-
import org.levimc.launcher.util.Logger;
65
import java.io.File;
76

87
public class Libs {
98
public static void onLoad(Context context) {
109
CacheLogger.logAllCacheFiles(context);
11-
Toast.makeText(context, "Prokitid Libs loaded!", Toast.LENGTH_SHORT).show();
10+
Toast.makeText(context, "PL loaded!", Toast.LENGTH_LONG).show();
11+
File lcon = new File(context.getCacheDir() + "/native/libmod.so");
12+
System.load(lcon.getAbsolutePath());
1213
}
13-
/*
14-
public static void logFiles(Context context) {
15-
File directory = context.getCacheDir();
16-
logFiles(directory, "");
17-
}
18-
19-
private static void logFiles(File directory, String indent) {
20-
File[] files = directory.listFiles();
21-
if (files != null) {
22-
for (File file : files) {
23-
if (file.isDirectory()) {
24-
Logger.get().info("FileLogger", indent + file.getName() + "/");
25-
logFiles(file, indent + " ");
26-
} else {
27-
Logger.get().info("FileLogger", indent + file.getName());
28-
}
29-
}
30-
}
31-
}*/
3214
}

0 commit comments

Comments
 (0)