X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/ms2-fixes/blobdiff_plain/5738a32fed2d7c93bfbcfcb8e1ccdffdc5dceb6a..74240c366d195768836671286497fa8b6909a523:/MS2Debounce/src/de/rmdir/ms2debounce/DebounceBootReceiver.java 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(); + } } } }