]>
Commit | Line | Data |
---|---|---|
c32e803e MG |
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())) { | |
5738a32f | 11 | DebounceModuleHelper module = new DebounceModuleHelper(context); |
226a7d4d | 12 | |
c3053460 | 13 | if (module.get_on_boot() && module.is_safe_to_load()) { |
1a5cc22f | 14 | context.startService(new Intent(context, DebounceBootService.class)); |
08fec0be | 15 | } |
c32e803e MG |
16 | } |
17 | } | |
18 | } |