Remove unnecessary changes for power button

This commit is contained in:
Vitaliy 2020-06-03 16:09:05 +03:00
parent b92c91c31e
commit 96bccff515

View file

@ -118,7 +118,7 @@ public class LockHelper implements SensorEventListener {
private void lock() {
releaseWakeLocks();
if (lockUIAdapter != null) {
if (lockUIAdapter != null && !(useSystemScreenTimeout.get() && turnScreenOnPowerButton.get())) {
lockUIAdapter.lock();
}
}