|
|
@ -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() |
|
|
|