Make custom server work when polling
[fonbot.git] / src / ro / ieval / fonbot / DynamicEventReceiver.java
index 926280b6234d60e24cc791136588b89bd83b2c29..d7acf5467da3ba0b9873cffa05d55076ac16484a 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))
-                               new PollServerAsyncTask().execute();
+                               new PollServerAsyncTask(context).execute();
                } 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.009618 seconds and 4 git commands to generate.