Only send binder to non-legacy module

This commit is contained in:
LoveSy 2023-01-10 23:28:37 +08:00 committed by LoveSy
parent 3209433766
commit 403791a25e
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ public class LSPModuleService extends IXposedService.Stub {
if (!uidSet.contains(uid)) { if (!uidSet.contains(uid)) {
uidSet.add(uid); uidSet.add(uid);
var module = ConfigManager.getInstance().getModule(uid); var module = ConfigManager.getInstance().getModule(uid);
if (module != null) { if (module != null && module.file != null && !module.file.legacy) {
var service = serviceMap.computeIfAbsent(module, LSPModuleService::new); var service = serviceMap.computeIfAbsent(module, LSPModuleService::new);
service.sendBinder(uid); service.sendBinder(uid);
} }