Skip to content

Commit d7c7cda

Browse files
committed
Fix missing return
1 parent 3697a39 commit d7c7cda

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/android.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
uses: actions/checkout@v6
2020
with:
2121
repository: libxposed/api
22-
ref: 64e29bd657ef4d2540b34402f5a988778f29e676
22+
ref: rfc
2323
path: libxposed/api
2424
fetch-depth: 0
2525

app/src/main/java/io/github/lsposed/disableflagsecure/DisableFlagSecure.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -413,8 +413,8 @@ public Object intercept(@NonNull Chain chain) throws Throwable {
413413
return chain.proceed(args);
414414
}
415415
}
416-
module.log(Log.ERROR, TAG, "flag not found in CreateVirtualDisplayLockedHooker");
417-
return null;
416+
module.log(Log.WARN, TAG, "flag not found in CreateVirtualDisplayLockedHooker");
417+
return chain.proceed();
418418
}
419419
}
420420

@@ -429,14 +429,14 @@ public Object intercept(@NonNull Chain chain) throws Throwable {
429429
.limit(6)
430430
.skip(2)
431431
.anyMatch(s -> s.equals("setInitialSurfaceControlProperties") || s.equals("createSurfaceLocked")));
432-
if (match) chain.proceed();
432+
if (match) return chain.proceed();
433433
} else {
434434
var stackTrace = new Throwable().getStackTrace();
435435
for (int i = 4; i < stackTrace.length && i < 8; i++) {
436436
var name = stackTrace[i].getMethodName();
437437
if (name.equals("setInitialSurfaceControlProperties") ||
438438
name.equals("createSurfaceLocked")) {
439-
chain.proceed();
439+
return chain.proceed();
440440
}
441441
}
442442
}

0 commit comments

Comments
 (0)