优化
This commit is contained in:
@@ -92,7 +92,8 @@ class MediaButtonReceiver : BroadcastReceiver() {
|
||||
} else {
|
||||
appDb.bookDao.lastReadBook?.let {
|
||||
ReadBook.resetData(it)
|
||||
ReadBook.curTextChapter ?: ReadBook.loadContent(false)
|
||||
ReadBook.clearTextChapter()
|
||||
ReadBook.loadContent(false) {
|
||||
ReadBook.readAloud()
|
||||
}
|
||||
}
|
||||
@@ -100,5 +101,6 @@ class MediaButtonReceiver : BroadcastReceiver() {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user