|
@@ -19,6 +19,7 @@ class CoverEditorDialog : DialogFragment() {
|
|
|
|
|
|
private val dialogTag = this::class.java.simpleName
|
|
|
|
|
|
+ lateinit var onViewCreated: Runnable
|
|
|
var onSave: View.OnClickListener? = null
|
|
|
var onCancel: View.OnClickListener? = null
|
|
|
var storyName: String
|
|
@@ -94,6 +95,11 @@ class CoverEditorDialog : DialogFragment() {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
|
|
|
+ super.onViewCreated(view, savedInstanceState)
|
|
|
+ onViewCreated.run()
|
|
|
+ }
|
|
|
+
|
|
|
fun show(manager: FragmentManager?) {
|
|
|
manager?.apply {
|
|
|
val ft = beginTransaction()
|