X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/ms2-fixes/blobdiff_plain/226a7d4d64fdbd6731e7f44f897343ad9f38658f..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 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(); + } } } }