Skip to content

Commit

Permalink
优化
Browse files Browse the repository at this point in the history
  • Loading branch information
gedoor committed Jan 14, 2019
1 parent b7d4172 commit a789dc7
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -284,8 +284,10 @@ private void screenOffTimerStart() {
mHandler.removeCallbacks(keepScreenRunnable);
keepScreenOn(true);
mHandler.postDelayed(keepScreenRunnable, screenOffTime);
} else if (screenTimeOut != -1) {
} else if (screenTimeOut == 0) {
keepScreenOn(false);
} else {
keepScreenOn(true);
}
}

Expand Down

0 comments on commit a789dc7

Please sign in to comment.