Skip to content

Commit

Permalink
turn off wake lock and wifi lock
Browse files Browse the repository at this point in the history
  • Loading branch information
brussee committed Nov 22, 2016
1 parent b7f8353 commit 8d4cab1
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public boolean getStartForeground() {
@Override
public void onCreate() {
super.onCreate();

/*
// Keep the CPU on
PowerManager powerManager =
(PowerManager) getApplicationContext().getSystemService(POWER_SERVICE);
Expand All @@ -63,15 +63,16 @@ public void onCreate() {
(WifiManager) getApplicationContext().getSystemService(Context.WIFI_SERVICE);
wifiLock = wifiManager.createWifiLock(WifiManager.WIFI_MODE_FULL, "Tribler");
wifiLock.acquire();
*/
}

/**
* {@inheritDoc}
*/
@Override
public void onDestroy() {
wakeLock.release();
wifiLock.release();
//wakeLock.release();
//wifiLock.release();
super.onDestroy();
}

Expand Down

0 comments on commit 8d4cab1

Please sign in to comment.