blob: 237a65e113705d12932f35140c406f4b11629186 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
package de.luhmer.owncloudnewsreader.helper;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import org.greenrobot.eventbus.EventBus;
import de.luhmer.owncloudnewsreader.services.events.StopWebArchiveDownloadEvent;
import static de.luhmer.owncloudnewsreader.Constants.NOTIFICATION_ACTION_STOP_STRING;
public class NotificationActionReceiver extends BroadcastReceiver {
@Override
public void onReceive(Context context, Intent intent) {
String action = intent.getAction();
if (NOTIFICATION_ACTION_STOP_STRING.equals(action)) {
EventBus.getDefault().post(new StopWebArchiveDownloadEvent());
}
}
}
|