优化
This commit is contained in:
@@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user