]> iEval git - fonbot.git/blobdiff - src/ro/ieval/fonbot/GCMIntentService.java
Remove the global FonBotApplication instance.
[fonbot.git] / src / ro / ieval / fonbot / GCMIntentService.java
index de3820874242db746df6a281c2a2079e550997e0..bf17e5ffa83076f3ebd346bc56884cf48bbfdce8 100644 (file)
@@ -51,17 +51,20 @@ public class GCMIntentService extends GCMBaseIntentService {
 
        @Override
        protected void onMessage(@Nullable final Context context, @Nullable final Intent intent) {
+               if(context==null)
+                       return;
+
                handler.post(new Runnable(){
                        @Override
                        public void run() {
-                               new PollServerAsyncTask().execute();    
+                               new PollServerAsyncTask(context).execute();     
                        }
                });
        }
 
        @Override
        protected void onRegistered(@Nullable final Context context, @Nullable final String regID) {
-               FonBotApplication.instance.regID=regID;
+               //do nothing
        }
 
        @Override
This page took 0.02562 seconds and 4 git commands to generate.