File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ public class ForegroundService extends Service {
67
67
// Binder given to clients
68
68
private final IBinder binder = new ForegroundBinder ();
69
69
70
- private WifiLock wfl = null ;
70
+ // private WifiLock wfl = null;
71
71
72
72
/**
73
73
* Allow clients to call on to the service.
@@ -134,11 +134,11 @@ private void keepAwake()
134
134
startForeground (NOTIFICATION_ID , makeNotification ());
135
135
}
136
136
137
- if (wfl == null ) {
138
- WifiManager wm = (WifiManager )getSystemService (Context .WIFI_SERVICE );
139
- wfl = wm .createWifiLock (WIFI_MODE_FULL_HIGH_PERF , "backgroundmode:sync_all_wifi" );
140
- wfl .acquire ();
141
- }
137
+ // if(wfl == null) {
138
+ // WifiManager wm = (WifiManager)getSystemService(Context.WIFI_SERVICE);
139
+ // wfl = wm.createWifiLock(WIFI_MODE_FULL_HIGH_PERF, "backgroundmode:sync_all_wifi");
140
+ // wfl.acquire();
141
+ // }
142
142
}
143
143
144
144
/**
@@ -149,10 +149,10 @@ private void sleepWell()
149
149
stopForeground (true );
150
150
getNotificationManager ().cancel (NOTIFICATION_ID );
151
151
152
- if (wfl != null ) {
153
- wfl .release ();
154
- wfl = null ;
155
- }
152
+ // if(wfl != null) {
153
+ // wfl.release();
154
+ // wfl = null;
155
+ // }
156
156
}
157
157
158
158
/**
You can’t perform that action at this time.
0 commit comments