X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=src%2Fro%2Fieval%2Ffonbot%2FGCMIntentService.java;h=84a3c7903268c8656f3790dd406db5712000260f;hb=0f74646f9a4c1e195e2ea3600ae3c03d51fd11d5;hp=bf17e5ffa83076f3ebd346bc56884cf48bbfdce8;hpb=8bfdcf7a444359151c18720b01443d6f507bec7e;p=fonbot.git diff --git a/src/ro/ieval/fonbot/GCMIntentService.java b/src/ro/ieval/fonbot/GCMIntentService.java index bf17e5f..84a3c79 100644 --- a/src/ro/ieval/fonbot/GCMIntentService.java +++ b/src/ro/ieval/fonbot/GCMIntentService.java @@ -4,9 +4,6 @@ import org.eclipse.jdt.annotation.Nullable; import android.content.Context; import android.content.Intent; -import android.os.Handler; -import android.os.Looper; - import com.google.android.gcm.GCMBaseIntentService; /* @@ -34,9 +31,6 @@ import com.google.android.gcm.GCMBaseIntentService; * @author Marius Gavrilescu */ public class GCMIntentService extends GCMBaseIntentService { - /** Handler instance */ - private final Handler handler=new Handler(Looper.getMainLooper()); - /** * Constructs a GCMIntentService with the iEval sender id */ @@ -54,12 +48,7 @@ public class GCMIntentService extends GCMBaseIntentService { if(context==null) return; - handler.post(new Runnable(){ - @Override - public void run() { - new PollServerAsyncTask(context).execute(); - } - }); + Utils.pollServer(context); } @Override