mirror of
https://github.com/gedoor/legado.git
synced 2024-07-06 23:47:49 +08:00
优化
This commit is contained in:
parent
0bffbb6c9f
commit
4980c11677
@ -142,8 +142,14 @@ class ExploreShowActivity : VMBaseActivity<ActivityExploreShowBinding, ExploreSh
|
||||
customView { alertBinding.root }
|
||||
yesButton {
|
||||
alertBinding.run {
|
||||
val start = editStart.text!!.toString().toInt()
|
||||
val end = editEnd.text!!.toString().toInt()
|
||||
val start = editStart.text
|
||||
.runCatching {
|
||||
toString().toInt()
|
||||
}.getOrDefault(0)
|
||||
val end = editEnd.text
|
||||
.runCatching {
|
||||
toString().toInt()
|
||||
}.getOrDefault(9)
|
||||
addAllToBookshelf(start, end, groupId)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user