This commit is contained in:
kunfei committed 2023-06-27 19:43:40 +08:00
1 parent 8175d2aae5
commit 468d5f6364
1 file changed
+8 -2
@@ -142,8 +142,14 @@ class ExploreShowActivity : VMBaseActivity<ActivityExploreShowBinding, ExploreSh
customView { alertBinding.root } customView { alertBinding.root }
yesButton { yesButton {
alertBinding.run { alertBinding.run {
val start = editStart.text!!.toString().toInt() val start = editStart.text
val end = editEnd.text!!.toString().toInt() .runCatching {
toString().toInt()
}.getOrDefault(0)
val end = editEnd.text
.runCatching {
toString().toInt()
}.getOrDefault(9)
addAllToBookshelf(start, end, groupId) addAllToBookshelf(start, end, groupId)
} }
} }