]> git.zerfleddert.de Git - ms2-fixes/blobdiff - MS2Debounce/src/de/rmdir/ms2debounce/DebounceBootReceiver.java
deactivate debounce when delay is 0
[ms2-fixes] / MS2Debounce / src / de / rmdir / ms2debounce / DebounceBootReceiver.java
index de10592968112629aea666270927ea7c83f32074..b60b5582bc2fc0e560938f81db9ffa7b96cba867 100644 (file)
@@ -8,9 +8,11 @@ public class DebounceBootReceiver extends BroadcastReceiver{
        @Override
        public void onReceive(Context context, Intent intent) {
                if("android.intent.action.BOOT_COMPLETED".equals(intent.getAction())) {
        @Override
        public void onReceive(Context context, Intent intent) {
                if("android.intent.action.BOOT_COMPLETED".equals(intent.getAction())) {
-                       DebounceModuleHelper module = new DebounceModuleHelper(context.getFilesDir());
+                       DebounceModuleHelper module = new DebounceModuleHelper(context);
 
 
-                       module.loadModule();
+                       if (module.get_on_boot() && module.is_safe_to_load()) {
+                               module.loadModule();
+                       }
                }
        }
 }
                }
        }
 }
Impressum, Datenschutz