X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/ms2-fixes/blobdiff_plain/5738a32fed2d7c93bfbcfcb8e1ccdffdc5dceb6a..0c4d887cedf2d981df24dcf7716b283be10e64e6:/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..14e76a9 100644 --- a/MS2Debounce/src/de/rmdir/ms2debounce/DebounceBootReceiver.java +++ b/MS2Debounce/src/de/rmdir/ms2debounce/DebounceBootReceiver.java @@ -10,7 +10,11 @@ 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()) { + try { + module.loadModule(); + } catch (Exception e) {} + } } } }