|
|
|
@ -24,10 +24,7 @@ import io.legado.app.lib.dialogs.noButton |
|
|
|
|
import io.legado.app.lib.dialogs.yesButton |
|
|
|
|
import io.legado.app.lib.theme.accentColor |
|
|
|
|
import io.legado.app.ui.widget.recycler.VerticalDivider |
|
|
|
|
import io.legado.app.utils.applyTint |
|
|
|
|
import io.legado.app.utils.getViewModelOfActivity |
|
|
|
|
import io.legado.app.utils.requestInputMethod |
|
|
|
|
import io.legado.app.utils.splitNotBlank |
|
|
|
|
import io.legado.app.utils.* |
|
|
|
|
import kotlinx.android.synthetic.main.dialog_edit_text.view.* |
|
|
|
|
import kotlinx.android.synthetic.main.dialog_recycler_view.* |
|
|
|
|
import kotlinx.android.synthetic.main.item_group_manage.view.* |
|
|
|
@ -68,6 +65,7 @@ class GroupManageDialog : DialogFragment(), Toolbar.OnMenuItemClickListener { |
|
|
|
|
recycler_view.addItemDecoration(VerticalDivider(requireContext())) |
|
|
|
|
recycler_view.adapter = adapter |
|
|
|
|
tv_ok.setTextColor(requireContext().accentColor) |
|
|
|
|
tv_ok.visible() |
|
|
|
|
tv_ok.onClick { dismiss() } |
|
|
|
|
App.db.rssSourceDao().liveGroup().observe(viewLifecycleOwner, Observer { |
|
|
|
|
val groups = linkedSetOf<String>() |
|
|
|
|