]> git.zerfleddert.de Git - ms2-fixes/blob - MS2Debounce/src/de/rmdir/ms2debounce/DebounceBootReceiver.java
14e76a9cf2758480628ec89e8b4724db2e9dbf14
[ms2-fixes] / MS2Debounce / src / de / rmdir / ms2debounce / DebounceBootReceiver.java
1 package de.rmdir.ms2debounce;
2
3 import android.content.BroadcastReceiver;
4 import android.content.Context;
5 import android.content.Intent;
6
7 public class DebounceBootReceiver extends BroadcastReceiver{
8 @Override
9 public void onReceive(Context context, Intent intent) {
10 if("android.intent.action.BOOT_COMPLETED".equals(intent.getAction())) {
11 DebounceModuleHelper module = new DebounceModuleHelper(context);
12
13 if (module.get_on_boot() && module.is_safe_to_load()) {
14 try {
15 module.loadModule();
16 } catch (Exception e) {}
17 }
18 }
19 }
20 }
Impressum, Datenschutz