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
925 B
Java
27 lines
925 B
Java
package com.todoroo.astrid.repeats;
|
|
|
|
import android.content.BroadcastReceiver;
|
|
import android.content.Context;
|
|
import android.content.Intent;
|
|
|
|
import com.timsu.astrid.R;
|
|
import com.todoroo.astrid.api.AstridApiConstants;
|
|
import com.todoroo.astrid.api.Addon;
|
|
|
|
public class RepeatsPlugin extends BroadcastReceiver {
|
|
|
|
static final String IDENTIFIER = "repeats"; //$NON-NLS-1$
|
|
|
|
@Override
|
|
public void onReceive(Context context, Intent intent) {
|
|
Addon plugin = new Addon(IDENTIFIER, context.getString(R.string.repeat_plugin),
|
|
context.getString(R.string.AOA_internal_author),
|
|
context.getString(R.string.repeat_plugin_desc));
|
|
|
|
Intent broadcastIntent = new Intent(AstridApiConstants.BROADCAST_SEND_ADDONS);
|
|
broadcastIntent.putExtra(AstridApiConstants.EXTRAS_ADDON, plugin);
|
|
context.sendBroadcast(broadcastIntent, AstridApiConstants.PERMISSION_READ);
|
|
}
|
|
|
|
}
|