pull/32/head
kunfei 5 years ago
parent 35968acd4c
commit 81d45481e6
  1. 10
      app/src/main/java/io/legado/app/ui/readbook/ReadBookActivity.kt

@ -419,14 +419,8 @@ class ReadBookActivity : VMBaseActivity<ReadBookViewModel>(R.layout.activity_rea
alert { alert {
title = getString(R.string.add_to_shelf) title = getString(R.string.add_to_shelf)
message = getString(R.string.check_add_bookshelf, it.name) message = getString(R.string.check_add_bookshelf, it.name)
okButton { okButton { viewModel.inBookshelf = true }
viewModel.inBookshelf = true noButton { viewModel.removeFromBookshelf { super.finish() } }
}
noButton {
viewModel.removeFromBookshelf {
super.finish()
}
}
}.show() }.show()
} else { } else {
super.finish() super.finish()

Loading…
Cancel
Save