seperate package for notifications
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
package net.headlezz.notificationlogger.createnotification;
|
||||
|
||||
import android.content.BroadcastReceiver;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
|
||||
import net.headlezz.notificationlogger.createnotification.DispatchableNotification;
|
||||
|
||||
public class NotificationAlarmReceiver extends BroadcastReceiver {
|
||||
|
||||
public static String BROADCAST_INTENT_ACTION = "net.headlezz.notificationbroadcast";
|
||||
|
||||
@Override
|
||||
public void onReceive(Context context, Intent intent) {
|
||||
DispatchableNotification dn = DispatchableNotification.fromBundle(context, intent.getExtras());
|
||||
dn.dispatch();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user