|
@@ -14,6 +14,7 @@ import kotlinx.android.synthetic.main.dialog_cover_editor.view.*
|
|
|
|
|
|
class CoverEditorDialog : DialogFragment() {
|
|
class CoverEditorDialog : DialogFragment() {
|
|
companion object {
|
|
companion object {
|
|
|
|
+ const val FRONT_PAGE_POSITION = 0
|
|
const val PAGE_COUNT = 2
|
|
const val PAGE_COUNT = 2
|
|
}
|
|
}
|
|
|
|
|
|
@@ -126,4 +127,14 @@ class CoverEditorDialog : DialogFragment() {
|
|
}
|
|
}
|
|
super.show(manager, dialogTag)
|
|
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()
|
|
|
|
+ }
|
|
}
|
|
}
|