From a2c59f67335925d0eb512aa6cc1d05a0062fde43 Mon Sep 17 00:00:00 2001 From: kunfei Date: Fri, 22 Nov 2019 16:26:17 +0800 Subject: [PATCH] up --- .../java/io/legado/app/ui/book/info/BookInfoActivity.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 722fd0aef..2d179b60e 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 @@ -41,7 +41,11 @@ class BookInfoActivity : VMBaseActivity(R.layout.activity_boo viewModel.isLoadingData.observe(this, Observer { upLoading(it) }) viewModel.chapterListData.observe(this, Observer { showChapter(it) }) viewModel.groupData.observe(this, Observer { - tv_group.text = getString(R.string.group_s, it.groupName) + if (it == null) { + tv_group.text = getString(R.string.group_s, getString(R.string.no_group)) + } else { + tv_group.text = getString(R.string.group_s, it.groupName) + } }) viewModel.initData(intent) initOnClick()