feat: 优化代码

pull/190/head
kunfei 5 years ago
parent af95e19788
commit 694499174b
  1. 5
      app/src/main/java/io/legado/app/ui/book/group/GroupSelectDialog.kt

@ -94,10 +94,7 @@ class GroupSelectDialog : DialogFragment(), Toolbar.OnMenuItemClickListener {
tool_bar.inflateMenu(R.menu.book_group_manage)
tool_bar.menu.applyTint(requireContext(), Theme.getTheme())
tool_bar.setOnMenuItemClickListener(this)
tool_bar.menu.findItem(R.id.menu_group_all).isVisible = false
tool_bar.menu.findItem(R.id.menu_group_local).isVisible = false
tool_bar.menu.findItem(R.id.menu_group_audio).isVisible = false
tool_bar.menu.findItem(R.id.menu_group_none).isVisible = false
tool_bar.menu.setGroupVisible(R.id.menu_groups, false)
adapter = GroupAdapter(requireContext())
recycler_view.layoutManager = LinearLayoutManager(requireContext())
recycler_view.addItemDecoration(VerticalDivider(requireContext()))

Loading…
Cancel
Save