[app] Fix app list of new modules (#854)

This commit is contained in:
LoveSy 2021-08-06 22:00:52 +08:00 committed by GitHub
parent 607bbedec4
commit e914bc32fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -119,11 +119,11 @@ public class ConfigManager {
public static List<ScopeAdapter.ApplicationWithEquals> getModuleScope(String packageName) {
List<ScopeAdapter.ApplicationWithEquals> list = new ArrayList<>();
try {
List<Application> applications = LSPManagerServiceHolder.getService().getModuleScope(packageName).getList();
var applications = LSPManagerServiceHolder.getService().getModuleScope(packageName);
if (applications == null) {
return list;
}
applications.forEach(application -> {
applications.getList().forEach(application -> {
if (!application.packageName.equals(packageName)) {
list.add(new ScopeAdapter.ApplicationWithEquals(application));
}