|
@@ -36,7 +36,15 @@ class FrontCoverEditorView @JvmOverloads constructor(
|
|
|
set(value) {
|
|
|
et_frontCoverEditor_author.setText(value)
|
|
|
}
|
|
|
- var category: Category = Category.Daily
|
|
|
+ var category: Category
|
|
|
+ get() {
|
|
|
+ val position = spinner_frontCoverEditor_category.selectedItemPosition
|
|
|
+ return Category.values()[position]
|
|
|
+ }
|
|
|
+ set(value) {
|
|
|
+ val position = value.ordinal
|
|
|
+ spinner_frontCoverEditor_category.setSelection(position)
|
|
|
+ }
|
|
|
|
|
|
init {
|
|
|
View.inflate(context, R.layout.view_front_cover_editor, this)
|