|
@@ -312,6 +312,8 @@ class ReadBookActivity : BaseReadBookActivity(),
|
|
|
upSystemUiVisibility()
|
|
upSystemUiVisibility()
|
|
|
if (hasFocus) {
|
|
if (hasFocus) {
|
|
|
binding.readMenu.upBrightnessState()
|
|
binding.readMenu.upBrightnessState()
|
|
|
|
|
+ } else if (!menuLayoutIsVisible) {
|
|
|
|
|
+ ReadBook.cancelPreDownloadTask()
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -362,6 +364,7 @@ class ReadBookActivity : BaseReadBookActivity(),
|
|
|
autoPageStop()
|
|
autoPageStop()
|
|
|
backupJob?.cancel()
|
|
backupJob?.cancel()
|
|
|
ReadBook.saveRead()
|
|
ReadBook.saveRead()
|
|
|
|
|
+ ReadBook.cancelPreDownloadTask()
|
|
|
unregisterReceiver(timeBatteryReceiver)
|
|
unregisterReceiver(timeBatteryReceiver)
|
|
|
upSystemUiVisibility()
|
|
upSystemUiVisibility()
|
|
|
if (!BuildConfig.DEBUG) {
|
|
if (!BuildConfig.DEBUG) {
|