remove useless changes
This commit is contained in:
parent
fd5d0c5697
commit
794a76ae99
1 changed files with 2 additions and 5 deletions
|
@ -98,12 +98,9 @@ public class LockHelper implements SensorEventListener {
|
|||
}
|
||||
|
||||
public void unlockEvent() {
|
||||
boolean isScreenOn = AndroidUtils.isScreenOn(app);
|
||||
boolean isScreenLocked = AndroidUtils.isScreenLocked(app);
|
||||
int screenPowerSave = app.getSettings().TURN_SCREEN_ON_TIME_INT.get();
|
||||
|
||||
Integer screenPowerSave = app.getSettings().TURN_SCREEN_ON_TIME_INT.get();
|
||||
|
||||
if ((isScreenOn || isScreenLocked) && screenPowerSave > 0) {
|
||||
if (screenPowerSave > 0) {
|
||||
timedUnlock(screenPowerSave * 1000L);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue