|
@@ -14,9 +14,14 @@ import kotlinx.android.synthetic.main.dialog_cover_editor.view.*
|
|
|
|
|
|
class CoverEditorDialog : DialogFragment() {
|
|
|
companion object {
|
|
|
+ const val FRONT_PAGE_POSITION = 0
|
|
|
const val PAGE_COUNT = 2
|
|
|
}
|
|
|
|
|
|
+ init {
|
|
|
+ isCancelable = false
|
|
|
+ }
|
|
|
+
|
|
|
private val dialogTag = this::class.java.simpleName
|
|
|
|
|
|
lateinit var onViewCreated: Runnable
|
|
@@ -126,4 +131,14 @@ class CoverEditorDialog : DialogFragment() {
|
|
|
}
|
|
|
super.show(manager, dialogTag)
|
|
|
}
|
|
|
+
|
|
|
+ fun showDuplicatedProjectNameMsg() {
|
|
|
+ viewPager_coverEditorDialog_content.currentItem = FRONT_PAGE_POSITION
|
|
|
+ frontCoverEditorView_coverEditorDialog.showDuplicatedProjectNameMsg()
|
|
|
+ }
|
|
|
+
|
|
|
+ fun showEmptyProjectNameMsg() {
|
|
|
+ viewPager_coverEditorDialog_content.currentItem = FRONT_PAGE_POSITION
|
|
|
+ frontCoverEditorView_coverEditorDialog.showEmptyProjectNameMsg()
|
|
|
+ }
|
|
|
}
|