mirror of
https://github.com/gedoor/legado.git
synced 2025-08-10 00:52:30 +00:00
优化
This commit is contained in:
@@ -312,6 +312,8 @@ class ReadBookActivity : BaseReadBookActivity(),
|
||||
upSystemUiVisibility()
|
||||
if (hasFocus) {
|
||||
binding.readMenu.upBrightnessState()
|
||||
} else if (!menuLayoutIsVisible) {
|
||||
ReadBook.cancelPreDownloadTask()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -362,6 +364,7 @@ class ReadBookActivity : BaseReadBookActivity(),
|
||||
autoPageStop()
|
||||
backupJob?.cancel()
|
||||
ReadBook.saveRead()
|
||||
ReadBook.cancelPreDownloadTask()
|
||||
unregisterReceiver(timeBatteryReceiver)
|
||||
upSystemUiVisibility()
|
||||
if (!BuildConfig.DEBUG) {
|
||||
|
||||
Reference in New Issue
Block a user