|
@@ -19,6 +19,7 @@ class CoverEditorDialog : DialogFragment() {
|
|
|
|
|
|
private val dialogTag = this::class.java.simpleName
|
|
private val dialogTag = this::class.java.simpleName
|
|
|
|
|
|
|
|
+ lateinit var onViewCreated: Runnable
|
|
var onSave: View.OnClickListener? = null
|
|
var onSave: View.OnClickListener? = null
|
|
var onCancel: View.OnClickListener? = null
|
|
var onCancel: View.OnClickListener? = null
|
|
var storyName: String
|
|
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?) {
|
|
fun show(manager: FragmentManager?) {
|
|
manager?.apply {
|
|
manager?.apply {
|
|
val ft = beginTransaction()
|
|
val ft = beginTransaction()
|