Add comment for transform package name (#2599)
This commit is contained in:
parent
df4ce63f41
commit
12df69cb3b
|
|
@ -372,14 +372,13 @@ public final class ModuleUtil {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (list != null) {
|
if (list != null) {
|
||||||
|
//For historical reasons, legacy modules use the opposite name.
|
||||||
|
//https://github.com/rovo89/XposedBridge/commit/6b49688c929a7768f3113b4c65b429c7a7032afa
|
||||||
list.replaceAll(s ->
|
list.replaceAll(s ->
|
||||||
switch (s) {
|
switch (s) {
|
||||||
case "android":
|
case "android" -> "system";
|
||||||
yield "system";
|
case "system" -> "android";
|
||||||
case "system":
|
default -> s;
|
||||||
yield "android";
|
|
||||||
default:
|
|
||||||
yield s;
|
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
scopeList = list;
|
scopeList = list;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue