mirror of https://github.com/tasks/tasks
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
826 B
Java
33 lines
826 B
Java
package com.todoroo.astrid.reminders;
|
|
|
|
import android.content.BroadcastReceiver;
|
|
import android.content.Context;
|
|
import android.content.Intent;
|
|
|
|
import com.todoroo.astrid.service.AstridDependencyInjector;
|
|
|
|
/**
|
|
* Service which handles jobs that need to be run when phone boots
|
|
*
|
|
* @author Tim Su <tim@todoroo.com>
|
|
*
|
|
*/
|
|
public class ReminderStartupReceiver extends BroadcastReceiver {
|
|
|
|
static {
|
|
AstridDependencyInjector.initialize();
|
|
}
|
|
|
|
// --- system startup
|
|
|
|
@Override
|
|
/** Called when the system is started up */
|
|
public void onReceive(Context context, Intent intent) {
|
|
startReminderSchedulingService(context);
|
|
}
|
|
|
|
public static void startReminderSchedulingService(Context context) {
|
|
context.startService(new Intent(context, ReminderSchedulingService.class));
|
|
}
|
|
}
|