X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/ms2-fixes/blobdiff_plain/0ae502f627e216e71b179a37079c9d43c7feeed3..1559225a3318764b882a6dd62af2520bbba8f7ba:/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..b60b558 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()) { + module.loadModule(); + } } } }