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