X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/ms2-fixes/blobdiff_plain/5738a32fed2d7c93bfbcfcb8e1ccdffdc5dceb6a..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 2a15ea4..b60b558 100644 --- a/MS2Debounce/src/de/rmdir/ms2debounce/DebounceBootReceiver.java +++ b/MS2Debounce/src/de/rmdir/ms2debounce/DebounceBootReceiver.java @@ -10,7 +10,9 @@ public class DebounceBootReceiver extends BroadcastReceiver{ if("android.intent.action.BOOT_COMPLETED".equals(intent.getAction())) { DebounceModuleHelper module = new DebounceModuleHelper(context); - module.loadModule(); + if (module.get_on_boot() && module.is_safe_to_load()) { + module.loadModule(); + } } } }