Add comment for transform package name (#2599)

This commit is contained in:
南宫雪珊 2023-07-03 16:45:40 +08:00 committed by GitHub
parent df4ce63f41
commit 12df69cb3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 6 deletions

View File

@ -372,14 +372,13 @@ public final class ModuleUtil {
}
}
if (list != null) {
//For historical reasons, legacy modules use the opposite name.
//https://github.com/rovo89/XposedBridge/commit/6b49688c929a7768f3113b4c65b429c7a7032afa
list.replaceAll(s ->
switch (s) {
case "android":
yield "system";
case "system":
yield "android";
default:
yield s;
case "android" -> "system";
case "system" -> "android";
default -> s;
}
);
scopeList = list;