pull/1319/head
gedoor 3 years ago
parent 65cf646520
commit 1f6523a4a4
  1. 8
      app/src/main/java/io/legado/app/ui/book/info/BookInfoActivity.kt

@ -327,15 +327,11 @@ class BookInfoActivity :
} }
customView { alertBinding.root } customView { alertBinding.root }
okButton { okButton {
launch(IO) { viewModel.bookSource?.setVariable(alertBinding.editView.text?.toString())
viewModel.bookSource?.setVariable(alertBinding.editView.text?.toString())
}
} }
cancelButton() cancelButton()
neutralButton(R.string.delete) { neutralButton(R.string.delete) {
launch(IO) { viewModel.bookSource?.setVariable(null)
viewModel.bookSource?.setVariable(null)
}
} }
}.show() }.show()
} }

Loading…
Cancel
Save