|
|
@ -30,7 +30,7 @@ class BookInfoActivity : VMBaseActivity<BookInfoViewModel>(R.layout.activity_boo |
|
|
|
viewModel.loadBook(intent) |
|
|
|
viewModel.loadBook(intent) |
|
|
|
initView() |
|
|
|
initView() |
|
|
|
savedInstanceState?.let { |
|
|
|
savedInstanceState?.let { |
|
|
|
changeSourceDialog = supportFragmentManager.findFragmentByTag("changeSourceDialog") as? ChangeSourceDialog |
|
|
|
changeSourceDialog = supportFragmentManager.findFragmentByTag(ChangeSourceDialog.tag) as? ChangeSourceDialog |
|
|
|
changeSourceDialog?.callBack = this |
|
|
|
changeSourceDialog?.callBack = this |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -128,7 +128,7 @@ class BookInfoActivity : VMBaseActivity<BookInfoViewModel>(R.layout.activity_boo |
|
|
|
changeSourceDialog?.callBack = this |
|
|
|
changeSourceDialog?.callBack = this |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
changeSourceDialog?.show(supportFragmentManager, "changeSource") |
|
|
|
changeSourceDialog?.show(supportFragmentManager, ChangeSourceDialog.tag) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |