X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;ds=sidebyside;f=src%2Fro%2Fieval%2Ffonbot%2FHeavy.java;h=f734437f4c452d8c3ee8dc11f25db109dbfa11f1;hb=c0c92599e4794433ad69fffcfcd3af677a37b03a;hp=6e91f2f1fbbd61c173ad4105ffb48cd1189b9909;hpb=02c042b0f3567b750a976368e398a4c0a3650d98;p=fonbot.git diff --git a/src/ro/ieval/fonbot/Heavy.java b/src/ro/ieval/fonbot/Heavy.java index 6e91f2f..f734437 100644 --- a/src/ro/ieval/fonbot/Heavy.java +++ b/src/ro/ieval/fonbot/Heavy.java @@ -1519,9 +1519,9 @@ final class Heavy { */ public static void poll(final Context context, final Address replyTo, final long ms){ final AlarmManager man=(AlarmManager) context.getSystemService(Context.ALARM_SERVICE); - final Intent pollAlarm=new Intent(context, LocalBroadcastReceiver.class); - pollAlarm.setAction(LocalBroadcastReceiver.ACTION_POLL_ALARM); - final PendingIntent intent=PendingIntent.getBroadcast(context, 0, pollAlarm, 0); + final Intent pollAlarm=new Intent(context, FonBotMainService.class); + pollAlarm.setAction(FonBotMainService.ACTION_TRIGGER_POLL); + final PendingIntent intent=PendingIntent.getService(context, 0, pollAlarm, 0); if(ms==0){ Utils.unregisterOngoing(context, toNonNull(OngoingEvent.POLL)); man.cancel(intent);