X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/ms2-fixes/blobdiff_plain/0ae502f627e216e71b179a37079c9d43c7feeed3..1a5cc22f549744032d98e89fb598440558f01148:/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 3ab003d..a493070 100644 --- a/MS2Debounce/src/de/rmdir/ms2debounce/DebounceBootReceiver.java +++ b/MS2Debounce/src/de/rmdir/ms2debounce/DebounceBootReceiver.java @@ -8,7 +8,11 @@ public class DebounceBootReceiver extends BroadcastReceiver{ @Override public void onReceive(Context context, Intent intent) { if("android.intent.action.BOOT_COMPLETED".equals(intent.getAction())) { - DebounceModuleHelper.loadModule(); + DebounceModuleHelper module = new DebounceModuleHelper(context); + + if (module.get_on_boot() && module.is_safe_to_load()) { + context.startService(new Intent(context, DebounceBootService.class)); + } } } }