Skip to content
Snippets Groups Projects
Commit 51f320d1 authored by akwizgran's avatar akwizgran
Browse files

Merge branch '992-wake-lock-tag' into 'master'

Change wake lock tag

Closes #992 and #1087

See merge request !612
parents 9b577f12 e402a894
No related branches found
No related tags found
No related merge requests found
......@@ -149,7 +149,8 @@ class TorPlugin implements DuplexPlugin, EventHandler, EventListener {
cookieFile = new File(torDirectory, ".tor/control_auth_cookie");
Object o = appContext.getSystemService(POWER_SERVICE);
PowerManager pm = (PowerManager) o;
wakeLock = pm.newWakeLock(PARTIAL_WAKE_LOCK, "TorPlugin");
// This tag will prevent Huawei's powermanager from killing us.
wakeLock = pm.newWakeLock(PARTIAL_WAKE_LOCK, "LocationManagerService");
wakeLock.setReferenceCounted(false);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment