|
|
@ -9,6 +9,7 @@ import android.graphics.drawable.ColorDrawable |
|
|
|
import android.net.Uri |
|
|
|
import android.net.Uri |
|
|
|
import android.os.Bundle |
|
|
|
import android.os.Bundle |
|
|
|
import android.os.Handler |
|
|
|
import android.os.Handler |
|
|
|
|
|
|
|
import android.os.Looper |
|
|
|
import android.view.* |
|
|
|
import android.view.* |
|
|
|
import android.view.ViewGroup.LayoutParams.WRAP_CONTENT |
|
|
|
import android.view.ViewGroup.LayoutParams.WRAP_CONTENT |
|
|
|
import androidx.core.view.get |
|
|
|
import androidx.core.view.get |
|
|
@ -92,7 +93,7 @@ class ReadBookActivity : VMBaseActivity<ReadBookViewModel>(R.layout.activity_boo |
|
|
|
override val scope: CoroutineScope get() = this |
|
|
|
override val scope: CoroutineScope get() = this |
|
|
|
override val isInitFinish: Boolean get() = viewModel.isInitFinish |
|
|
|
override val isInitFinish: Boolean get() = viewModel.isInitFinish |
|
|
|
override val isScroll: Boolean get() = page_view.isScroll |
|
|
|
override val isScroll: Boolean get() = page_view.isScroll |
|
|
|
private val mHandler = Handler() |
|
|
|
private val mHandler = Handler(Looper.getMainLooper()) |
|
|
|
private val keepScreenRunnable: Runnable = |
|
|
|
private val keepScreenRunnable: Runnable = |
|
|
|
Runnable { ReadBookActivityHelp.keepScreenOn(window, false) } |
|
|
|
Runnable { ReadBookActivityHelp.keepScreenOn(window, false) } |
|
|
|
private val autoPageRunnable: Runnable = Runnable { autoPagePlus() } |
|
|
|
private val autoPageRunnable: Runnable = Runnable { autoPagePlus() } |
|
|
|