|
|
@ -26,6 +26,7 @@ import io.legado.app.ui.widget.recycler.ItemTouchCallback |
|
|
|
import io.legado.app.ui.widget.recycler.VerticalDivider |
|
|
|
import io.legado.app.ui.widget.recycler.VerticalDivider |
|
|
|
import io.legado.app.utils.cnCompare |
|
|
|
import io.legado.app.utils.cnCompare |
|
|
|
import io.legado.app.utils.getPrefInt |
|
|
|
import io.legado.app.utils.getPrefInt |
|
|
|
|
|
|
|
import io.legado.app.utils.showDialog |
|
|
|
import io.legado.app.utils.viewbindingdelegate.viewBinding |
|
|
|
import io.legado.app.utils.viewbindingdelegate.viewBinding |
|
|
|
import kotlinx.coroutines.Dispatchers.IO |
|
|
|
import kotlinx.coroutines.Dispatchers.IO |
|
|
|
import kotlinx.coroutines.Job |
|
|
|
import kotlinx.coroutines.Job |
|
|
@ -143,8 +144,7 @@ class ArrangeBookActivity : VMBaseActivity<ActivityArrangeBookBinding, ArrangeBo |
|
|
|
|
|
|
|
|
|
|
|
override fun onCompatOptionsItemSelected(item: MenuItem): Boolean { |
|
|
|
override fun onCompatOptionsItemSelected(item: MenuItem): Boolean { |
|
|
|
when (item.itemId) { |
|
|
|
when (item.itemId) { |
|
|
|
R.id.menu_group_manage -> GroupManageDialog() |
|
|
|
R.id.menu_group_manage -> supportFragmentManager.showDialog<GroupManageDialog>() |
|
|
|
.show(supportFragmentManager, "groupManage") |
|
|
|
|
|
|
|
else -> if (item.groupId == R.id.menu_group) { |
|
|
|
else -> if (item.groupId == R.id.menu_group) { |
|
|
|
binding.titleBar.subtitle = item.title |
|
|
|
binding.titleBar.subtitle = item.title |
|
|
|
groupId = appDb.bookGroupDao.getByName(item.title.toString())?.groupId ?: 0 |
|
|
|
groupId = appDb.bookGroupDao.getByName(item.title.toString())?.groupId ?: 0 |
|
|
|