Skip to content

Commit 8ce3694

Browse files
committed
Fix empty scope condition
It seems that the module application itself is no longer (by default) in its scope list.
1 parent 4c01a7c commit 8ce3694

File tree

1 file changed

+1
-1
lines changed
  • daemon/src/main/java/org/lsposed/lspd/cli

1 file changed

+1
-1
lines changed

daemon/src/main/java/org/lsposed/lspd/cli/Main.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ public Integer call() throws RemoteException, JSONException {
149149
if (scope == null) {
150150
message = manager.getLastErrorMsg();
151151
allSuccess = false;
152-
} else if (objArgs.bEnable && scope.size() < 2) {
152+
} else if (objArgs.bEnable && scope.size() == 0) {
153153
message = "Cannot enable: module scope is empty.";
154154
allSuccess = false;
155155
} else {

0 commit comments

Comments
 (0)