X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/ms2-fixes/blobdiff_plain/c32e803e34e204b74691c83ff0d5013a159d651f..74240c366d195768836671286497fa8b6909a523:/MS2Debounce/src/de/rmdir/ms2debounce/DebounceBootReceiver.java?ds=inline diff --git a/MS2Debounce/src/de/rmdir/ms2debounce/DebounceBootReceiver.java b/MS2Debounce/src/de/rmdir/ms2debounce/DebounceBootReceiver.java index 2f97c2c..b60b558 100644 --- a/MS2Debounce/src/de/rmdir/ms2debounce/DebounceBootReceiver.java +++ b/MS2Debounce/src/de/rmdir/ms2debounce/DebounceBootReceiver.java @@ -8,8 +8,11 @@ public class DebounceBootReceiver extends BroadcastReceiver{ @Override public void onReceive(Context context, Intent intent) { if("android.intent.action.BOOT_COMPLETED".equals(intent.getAction())) { - Intent debouncesvc = new Intent(context, DebounceService.class); - context.startService(debouncesvc); + DebounceModuleHelper module = new DebounceModuleHelper(context); + + if (module.get_on_boot() && module.is_safe_to_load()) { + module.loadModule(); + } } } }