public override void OnReceive(Context context, Intent intent) { #if DEBUG Toast.MakeText(context, "Received tap intent!", ToastLength.Short).Show(); #endif var nextAlarm = NextAlarm.ObtainFromSystem(context); nextAlarm.Show(context); WidgetsUpdater.Update(context, nextAlarm); }
public static void Update(Context context, int[] appWidgetIds = null) { var nextAlarm = NextAlarm.ObtainFromSystem(context); Update(context, nextAlarm, appWidgetIds); }