Don't wake screen in QueueThread use PARTIAL_WAKE_LOCK instead

This commit is contained in:
Jamorham 2018-02-18 15:00:24 +00:00
parent 9a76cdb3a1
commit 208c3ed9b1
No known key found for this signature in database
GPG key ID: 0BC5C3E0AAD64DF9

View file

@ -39,7 +39,8 @@ public class QueueThread extends Thread {
this.queue = queue;
PowerManager powerManager = (PowerManager) MainApp.instance().getApplicationContext().getSystemService(Context.POWER_SERVICE);
mWakeLock = powerManager.newWakeLock(PowerManager.SCREEN_DIM_WAKE_LOCK, "QueueThread");
//mWakeLock = powerManager.newWakeLock(PowerManager.SCREEN_DIM_WAKE_LOCK, "QueueThread");
mWakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "QueueThread");
}
@Override