Replace GCM and polling with long polling
[fonbot.git] / src / ro / ieval / fonbot / DynamicEventReceiver.java
index cb1e80584e8a7c1f7c97454fab2cc2f98c59e93d..e6d74554f53f87099f8bf707cecee84cb41a030d 100644 (file)
@@ -45,10 +45,7 @@ public final class DynamicEventReceiver extends BroadcastReceiver {
 
                final String action=intent.getAction();
 
-               if(action.equals(Intent.ACTION_SCREEN_ON)){
-                       if(PreferenceManager.getDefaultSharedPreferences(context).getBoolean("poll_on_screen_on", false))
-                               Utils.safePollServer(context);
-               } else if(action.equals(Intent.ACTION_BATTERY_CHANGED))
+               if(action.equals(Intent.ACTION_BATTERY_CHANGED))
                        Heavy.describeBatteryLevel(context, null, toNonNull(MessageType.BATTERY_CHANGED));
                else if(action.equals(Intent.ACTION_HEADSET_PLUG)){
                        final int state=intent.getIntExtra("state", 0);
This page took 0.009985 seconds and 4 git commands to generate.