]> cvs.zerfleddert.de Git - ms2-fixes/blobdiff - MS2Debounce/src/de/rmdir/ms2debounce/DebounceBootReceiver.java
add gitignore
[ms2-fixes] / MS2Debounce / src / de / rmdir / ms2debounce / DebounceBootReceiver.java
index 2f97c2c955a42329463379397364d8a33d19396f..cc072b066ead977ac2c567b24eb582c13d9eb54f 100644 (file)
@@ -8,8 +8,11 @@ public class DebounceBootReceiver extends BroadcastReceiver{
        @Override
        public void onReceive(Context context, Intent intent) {
                if("android.intent.action.BOOT_COMPLETED".equals(intent.getAction())) {
-                       Intent debouncesvc = new Intent(context, DebounceService.class);
-                       context.startService(debouncesvc);
+                       DebounceModuleHelper module = new DebounceModuleHelper(context);
+
+                       if (module.is_safe_to_load()) {
+                               module.loadModule();
+                       }
                }
        }
 }
Impressum, Datenschutz