pull/1319/head
gedoor 3 years ago
parent 141e233f14
commit ec528a5ecd
  1. 3
      app/src/main/java/io/legado/app/ui/book/changecover/ChangeCoverDialog.kt
  2. 3
      app/src/main/java/io/legado/app/ui/book/changesource/ChangeSourceDialog.kt

@ -26,8 +26,7 @@ class ChangeCoverDialog : BaseDialogFragment(),
const val tag = "changeCoverDialog"
fun show(manager: FragmentManager, name: String, author: String) {
val fragment = (manager.findFragmentByTag(tag) as? ChangeCoverDialog)
?: ChangeCoverDialog().apply {
val fragment = ChangeCoverDialog().apply {
val bundle = Bundle()
bundle.putString("name", name)
bundle.putString("author", author)

@ -37,8 +37,7 @@ class ChangeSourceDialog : BaseDialogFragment(),
const val tag = "changeSourceDialog"
fun show(manager: FragmentManager, name: String, author: String) {
val fragment = (manager.findFragmentByTag(tag) as? ChangeSourceDialog)
?: ChangeSourceDialog().apply {
val fragment = ChangeSourceDialog().apply {
val bundle = Bundle()
bundle.putString("name", name)
bundle.putString("author", author)

Loading…
Cancel
Save