Don't call pollServer from a BroadcastRecevier
[fonbot.git] / src / ro / ieval / fonbot / DynamicEventReceiver.java
index 0912e8834f022709cbf082527bdef0609e801e52..cb1e80584e8a7c1f7c97454fab2cc2f98c59e93d 100644 (file)
@@ -47,7 +47,7 @@ public final class DynamicEventReceiver extends BroadcastReceiver {
 
                if(action.equals(Intent.ACTION_SCREEN_ON)){
                        if(PreferenceManager.getDefaultSharedPreferences(context).getBoolean("poll_on_screen_on", false))
-                               Utils.pollServer(context);
+                               Utils.safePollServer(context);
                } else if(action.equals(Intent.ACTION_BATTERY_CHANGED))
                        Heavy.describeBatteryLevel(context, null, toNonNull(MessageType.BATTERY_CHANGED));
                else if(action.equals(Intent.ACTION_HEADSET_PLUG)){
This page took 0.010199 seconds and 4 git commands to generate.