Fixed wonky wakelock settings
This commit is contained in:
parent
2ba109d5a1
commit
0ec87c77e3
@ -16,8 +16,7 @@ public abstract class WakeLocker {
|
|||||||
.getSystemService(Context.POWER_SERVICE);
|
.getSystemService(Context.POWER_SERVICE);
|
||||||
wakeLock = pm.newWakeLock(PowerManager.FULL_WAKE_LOCK
|
wakeLock = pm.newWakeLock(PowerManager.FULL_WAKE_LOCK
|
||||||
| PowerManager.ACQUIRE_CAUSES_WAKEUP
|
| PowerManager.ACQUIRE_CAUSES_WAKEUP
|
||||||
| PowerManager.ON_AFTER_RELEASE
|
| PowerManager.ON_AFTER_RELEASE, Constants.TAG);
|
||||||
| PowerManager.SCREEN_DIM_WAKE_LOCK, Constants.TAG);
|
|
||||||
wakeLock.acquire();
|
wakeLock.acquire();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user