From bce55124ea94706a47c5de2e703cc601809d1201 Mon Sep 17 00:00:00 2001 From: kunfei Date: Sat, 23 Nov 2019 18:41:33 +0800 Subject: [PATCH] up --- .../main/java/io/legado/app/ui/book/info/BookInfoActivity.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/main/java/io/legado/app/ui/book/info/BookInfoActivity.kt b/app/src/main/java/io/legado/app/ui/book/info/BookInfoActivity.kt index cf2814252..4d74cc0bb 100644 --- a/app/src/main/java/io/legado/app/ui/book/info/BookInfoActivity.kt +++ b/app/src/main/java/io/legado/app/ui/book/info/BookInfoActivity.kt @@ -253,6 +253,10 @@ class BookInfoActivity : VMBaseActivity(R.layout.activity_boo override fun upGroup(group: BookGroup) { viewModel.groupData.postValue(group) + viewModel.bookData.value?.group = group.groupId + if (viewModel.inBookshelf) { + viewModel.saveBook { } + } } override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) {