@ -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"
val fragment = (manager.findFragmentByTag(tag) as? ChangeSourceDialog)
?: ChangeSourceDialog().apply {
val fragment = ChangeSourceDialog().apply {