hide notification

pull/27/head
Milk 3 years ago
parent 05ccd24c72
commit 5d03625ae4
  1. 14
      Bcore/src/main/java/top/niunaijun/blackbox/BlackBoxCore.java

@ -99,13 +99,13 @@ public class BlackBoxCore extends ClientConfiguration {
// android.os.Debug.waitForDebugger();
}
if (isServerProcess()) {
Intent intent = new Intent();
intent.setClass(getContext(), DaemonService.class);
if (BuildCompat.isOreo()) {
getContext().startForegroundService(intent);
} else {
getContext().startService(intent);
}
// Intent intent = new Intent();
// intent.setClass(getContext(), DaemonService.class);
// if (BuildCompat.isOreo()) {
// getContext().startForegroundService(intent);
// } else {
// getContext().startService(intent);
// }
}
HookManager.get().init();
}

Loading…
Cancel
Save