From a789dc7f52e7bbec47ffcf0d79c7973dfec799c3 Mon Sep 17 00:00:00 2001 From: GKF Date: Mon, 14 Jan 2019 10:13:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/kunfei/bookshelf/view/activity/ReadBookActivity.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/kunfei/bookshelf/view/activity/ReadBookActivity.java b/app/src/main/java/com/kunfei/bookshelf/view/activity/ReadBookActivity.java index cd09935ec9..856f712fe4 100644 --- a/app/src/main/java/com/kunfei/bookshelf/view/activity/ReadBookActivity.java +++ b/app/src/main/java/com/kunfei/bookshelf/view/activity/ReadBookActivity.java @@ -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); } }