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.
27 lines
684 B
Java
27 lines
684 B
Java
/**
|
|
* See the file "LICENSE" for the full license governing this code.
|
|
*/
|
|
package com.todoroo.astrid.backup;
|
|
|
|
import android.content.BroadcastReceiver;
|
|
import android.content.Context;
|
|
import android.content.Intent;
|
|
|
|
import com.todoroo.andlib.service.ContextManager;
|
|
import com.todoroo.astrid.service.AstridDependencyInjector;
|
|
|
|
public class BackupStartupReceiver extends BroadcastReceiver {
|
|
|
|
static {
|
|
AstridDependencyInjector.initialize();
|
|
}
|
|
|
|
@Override
|
|
/** Called when device is restarted */
|
|
public void onReceive(final Context context, Intent intent) {
|
|
ContextManager.setContext(context);
|
|
BackupService.scheduleService(context);
|
|
}
|
|
|
|
}
|