书籍添加分享

pull/457/head
gedoor 4 years ago
parent abf9f38d2b
commit d0b509bdf2
  1. 7
      app/src/main/java/io/legado/app/ui/book/info/BookInfoActivity.kt

@ -90,6 +90,13 @@ class BookInfoActivity :
toast(R.string.after_add_bookshelf)
}
}
R.id.menu_share_it -> {
viewModel.bookData.value?.let {
val bookJson = GSON.toJson(it)
val shareStr = "${it.bookUrl}#$bookJson"
shareWithQr(it.name, shareStr)
}
}
R.id.menu_refresh -> {
upLoading(true)
viewModel.bookData.value?.let {

Loading…
Cancel
Save