Commit fedea2bb authored by fallenstardust's avatar fallenstardust

长按删除不询问

parent fa4d7e14
......@@ -176,15 +176,15 @@ class DeckManagerActivityImpl extends BaseCardsAcitivity implements RecyclerView
if (deckItem == null || deckItem.getCardInfo() == null) {
return;
}
DialogPlus dialogPlus = new DialogPlus(this);
dialogPlus.setTitle(R.string.question);
dialogPlus.setMessage(getString(R.string.delete_card, deckItem.getCardInfo().Name));
dialogPlus.setMessageGravity(Gravity.CENTER_HORIZONTAL);
dialogPlus.setLeftButtonListener((dlg, v) -> {
dlg.dismiss();
// DialogPlus dialogPlus = new DialogPlus(this);
// dialogPlus.setTitle(R.string.question);
// dialogPlus.setMessage(getString(R.string.delete_card, deckItem.getCardInfo().Name));
// dialogPlus.setMessageGravity(Gravity.CENTER_HORIZONTAL);
// dialogPlus.setLeftButtonListener((dlg, v) -> {
// dlg.dismiss();
mDeckItemTouchHelper.remove(pos);
});
dialogPlus.show();
// });
// dialogPlus.show();
} else {
mDeckAdapater.showHeadView();
}
......
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