fix: minor changes
This commit is contained in:
@@ -452,4 +452,4 @@ data class Book(
|
|||||||
@TypeConverter
|
@TypeConverter
|
||||||
fun stringToReadConfig(json: String?) = GSON.fromJsonObject<ReadConfig>(json).getOrNull()
|
fun stringToReadConfig(json: String?) = GSON.fromJsonObject<ReadConfig>(json).getOrNull()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -591,8 +591,7 @@ object ReadBook : CoroutineScope by MainScope() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// put a log to avoid Kotlin K2 compiler take "when" as a return statement
|
return@async
|
||||||
AppLog.putDebug("contentLoadFinish done")
|
|
||||||
}.onError {
|
}.onError {
|
||||||
AppLog.put("ChapterProvider ERROR", it)
|
AppLog.put("ChapterProvider ERROR", it)
|
||||||
appCtx.toastOnUi("ChapterProvider ERROR:\n${it.stackTraceStr}")
|
appCtx.toastOnUi("ChapterProvider ERROR:\n${it.stackTraceStr}")
|
||||||
@@ -729,4 +728,4 @@ object ReadBook : CoroutineScope by MainScope() {
|
|||||||
fun notifyBookChanged()
|
fun notifyBookChanged()
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -61,7 +61,6 @@ abstract class BaseReadBookActivity :
|
|||||||
|
|
||||||
override val binding by viewBinding(ActivityBookReadBinding::inflate)
|
override val binding by viewBinding(ActivityBookReadBinding::inflate)
|
||||||
override val viewModel by viewModels<ReadBookViewModel>()
|
override val viewModel by viewModels<ReadBookViewModel>()
|
||||||
val dateFormatter = DateTimeFormatter.ofPattern("yyyy-MM-dd")
|
|
||||||
|
|
||||||
var bottomDialog = 0
|
var bottomDialog = 0
|
||||||
set(value) {
|
set(value) {
|
||||||
@@ -311,6 +310,7 @@ abstract class BaseReadBookActivity :
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun showSimulatedReading() {
|
fun showSimulatedReading() {
|
||||||
|
val dateFormatter = DateTimeFormatter.ofPattern("yyyy-MM-dd")
|
||||||
ReadBook.book?.let { book ->
|
ReadBook.book?.let { book ->
|
||||||
alert(titleResource = R.string.simulated_reading) {
|
alert(titleResource = R.string.simulated_reading) {
|
||||||
val alertBinding = DialogSimulatedReadingBinding.inflate(layoutInflater).apply {
|
val alertBinding = DialogSimulatedReadingBinding.inflate(layoutInflater).apply {
|
||||||
|
|||||||
Reference in New Issue
Block a user