|
|
@ -41,7 +41,11 @@ class BookInfoActivity : VMBaseActivity<BookInfoViewModel>(R.layout.activity_boo |
|
|
|
viewModel.isLoadingData.observe(this, Observer { upLoading(it) }) |
|
|
|
viewModel.isLoadingData.observe(this, Observer { upLoading(it) }) |
|
|
|
viewModel.chapterListData.observe(this, Observer { showChapter(it) }) |
|
|
|
viewModel.chapterListData.observe(this, Observer { showChapter(it) }) |
|
|
|
viewModel.groupData.observe(this, Observer { |
|
|
|
viewModel.groupData.observe(this, Observer { |
|
|
|
|
|
|
|
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) |
|
|
|
tv_group.text = getString(R.string.group_s, it.groupName) |
|
|
|
|
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
viewModel.initData(intent) |
|
|
|
viewModel.initData(intent) |
|
|
|
initOnClick() |
|
|
|
initOnClick() |
|
|
|