We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9187e43 commit ab3bb63Copy full SHA for ab3bb63
src/com/ceco/oreo/gravitybox/ModPowerMenu.java
@@ -356,7 +356,13 @@ protected void beforeHookedMethod(final MethodHookParam param) throws Throwable
356
private static void reboot() {
357
try {
358
Object wmf = XposedHelpers.getObjectField(mGlobalActionsDialog, "mWindowManagerFuncs");
359
- XposedHelpers.callMethod(wmf, "reboot", false);
+ Method m = XposedHelpers.findMethodExactIfExists(wmf.getClass(), "reboot",
360
+ boolean.class, String.class);
361
+ if (m != null) {
362
+ m.invoke(wmf, false, "reboot");
363
+ } else {
364
+ XposedHelpers.callMethod(wmf, "reboot", false);
365
+ }
366
} catch (Throwable t) {
367
GravityBox.log(TAG, t);
368
}
0 commit comments