|
|
@ -107,7 +107,7 @@ class GroupManageDialog : BaseDialogFragment(), Toolbar.OnMenuItemClickListener |
|
|
|
customView { |
|
|
|
customView { |
|
|
|
layoutInflater.inflate(R.layout.dialog_edit_text, null).apply { |
|
|
|
layoutInflater.inflate(R.layout.dialog_edit_text, null).apply { |
|
|
|
editText = edit_view.apply { |
|
|
|
editText = edit_view.apply { |
|
|
|
hint = "分组名称" |
|
|
|
setHint(R.string.group_name) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -129,7 +129,7 @@ class GroupManageDialog : BaseDialogFragment(), Toolbar.OnMenuItemClickListener |
|
|
|
customView { |
|
|
|
customView { |
|
|
|
layoutInflater.inflate(R.layout.dialog_edit_text, null).apply { |
|
|
|
layoutInflater.inflate(R.layout.dialog_edit_text, null).apply { |
|
|
|
editText = edit_view.apply { |
|
|
|
editText = edit_view.apply { |
|
|
|
hint = "分组名称" |
|
|
|
setHint(R.string.group_name) |
|
|
|
setText(bookGroup.groupName) |
|
|
|
setText(bookGroup.groupName) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -187,7 +187,7 @@ class GroupManageDialog : BaseDialogFragment(), Toolbar.OnMenuItemClickListener |
|
|
|
override fun convert(holder: ItemViewHolder, item: BookGroup, payloads: MutableList<Any>) { |
|
|
|
override fun convert(holder: ItemViewHolder, item: BookGroup, payloads: MutableList<Any>) { |
|
|
|
holder.itemView.apply { |
|
|
|
holder.itemView.apply { |
|
|
|
setBackgroundColor(context.backgroundColor) |
|
|
|
setBackgroundColor(context.backgroundColor) |
|
|
|
tv_group.text = item.groupName |
|
|
|
tv_group.text = item.getManageName(context) |
|
|
|
sw_show.isChecked = item.show |
|
|
|
sw_show.isChecked = item.show |
|
|
|
tv_del.isGone = item.groupId < 0 |
|
|
|
tv_del.isGone = item.groupId < 0 |
|
|
|
sw_show.isGone = item.groupId >= 0 |
|
|
|
sw_show.isGone = item.groupId >= 0 |
|
|
|