package com.lemenzo.clock.bedtime;import android.app.*;import android.content.*;import com.lemenzo.clock.R;import com.lemenzo.clock.notifications.NotificationChannels;public final class BedtimeReceiver extends BroadcastReceiver{@Override public void onReceive(Context c,Intent i){NotificationManager n=c.getSystemService(NotificationManager.class);if(n!=null)n.notify(3301,new Notification.Builder(c,NotificationChannels.BEDTIME).setSmallIcon(R.drawable.ic_notification_clock).setContentTitle(c.getString(R.string.bedtime_reminder)).setAutoCancel(true).build());BedtimeScheduler.schedule(c);}}
