mirror of https://github.com/tasks/tasks
Added Producteev startup receiver
parent
fd0e5b7d43
commit
c74f251a91
@ -0,0 +1,26 @@
|
||||
/**
|
||||
* See the file "LICENSE" for the full license governing this code.
|
||||
*/
|
||||
package com.todoroo.astrid.producteev;
|
||||
|
||||
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 ProducteevStartupReceiver extends BroadcastReceiver {
|
||||
|
||||
static {
|
||||
AstridDependencyInjector.initialize();
|
||||
}
|
||||
|
||||
@Override
|
||||
/** Called when device is restarted */
|
||||
public void onReceive(final Context context, Intent intent) {
|
||||
ContextManager.setContext(context);
|
||||
ProducteevBackgroundService.scheduleService();
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue