Commit f4a2b27a authored by fallenstardust's avatar fallenstardust

加入主卡组、副卡组后不自动收起按钮

parent d1b40308
......@@ -224,14 +224,14 @@ public class CardListAdapter extends BaseRecyclerAdapterPlus<Card, BaseViewHolde
holder.getView(R.id.btn_add_main).setOnClickListener((v) -> {
mShowMenuView = holder.itemView;
EventBus.getDefault().post(new CardInfoEvent(position, true));
((SwipeHorizontalMenuLayout) holder.getView(R.id.swipe_layout)).smoothCloseMenu();
//((SwipeHorizontalMenuLayout) holder.getView(R.id.swipe_layout)).smoothCloseMenu();
});
// }
// if (holder.btnSide != null) {
holder.getView(R.id.btn_add_side).setOnClickListener((v) -> {
mShowMenuView = holder.itemView;
EventBus.getDefault().post(new CardInfoEvent(position, false));
((SwipeHorizontalMenuLayout) holder.getView(R.id.swipe_layout)).smoothCloseMenu();
//((SwipeHorizontalMenuLayout) holder.getView(R.id.swipe_layout)).smoothCloseMenu();
});
// }
((SwipeHorizontalMenuLayout) holder.getView(R.id.swipe_layout)).setSwipeEnable(mEnableSwipe);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment