X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/ms2-fixes/blobdiff_plain/226a7d4d64fdbd6731e7f44f897343ad9f38658f..a4838b14f5c5bdb4ceda232aec01e695e56af575:/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 de10592..b60b558 100644 --- a/MS2Debounce/src/de/rmdir/ms2debounce/DebounceBootReceiver.java +++ b/MS2Debounce/src/de/rmdir/ms2debounce/DebounceBootReceiver.java @@ -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())) { - 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(); + } } } }