|
|
@ -70,7 +70,7 @@ class ArrangeBookActivity : VMBaseActivity<ArrangeBookViewModel>(R.layout.activi |
|
|
|
recycler_view.adapter = adapter |
|
|
|
recycler_view.adapter = adapter |
|
|
|
val itemTouchCallback = ItemTouchCallback() |
|
|
|
val itemTouchCallback = ItemTouchCallback() |
|
|
|
itemTouchCallback.onItemTouchCallbackListener = adapter |
|
|
|
itemTouchCallback.onItemTouchCallbackListener = adapter |
|
|
|
itemTouchCallback.isCanDrag = true |
|
|
|
itemTouchCallback.isCanDrag = getPrefInt(PreferKey.bookshelfSort) == 3 |
|
|
|
ItemTouchHelper(itemTouchCallback).attachToRecyclerView(recycler_view) |
|
|
|
ItemTouchHelper(itemTouchCallback).attachToRecyclerView(recycler_view) |
|
|
|
select_action_bar.setMainActionText(R.string.move_to_group) |
|
|
|
select_action_bar.setMainActionText(R.string.move_to_group) |
|
|
|
select_action_bar.inflateMenu(R.menu.arrange_book_sel) |
|
|
|
select_action_bar.inflateMenu(R.menu.arrange_book_sel) |
|
|
|