X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/ms2-fixes/blobdiff_plain/c32e803e34e204b74691c83ff0d5013a159d651f..6bb245ae4f93f3657aa56dfe4ca08d94ddce7723:/MS2Debounce/src/de/rmdir/ms2debounce/DebounceBootReceiver.java?ds=sidebyside 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(); + } } } }