Added swipe to delete

This commit is contained in:
M66B
2020-03-16 20:58:25 +01:00
parent b6e04abbde
commit 531e1347a9
3 changed files with 21 additions and 1 deletions

View File

@@ -172,6 +172,7 @@ public class FragmentAccount extends FragmentBase {
static final Long SWIPE_ACTION_HIDE = -4L;
static final Long SWIPE_ACTION_MOVE = -5L;
static final Long SWIPE_ACTION_FLAG = -6L;
static final Long SWIPE_ACTION_DELETE = -7L;
@Override
public void onCreate(Bundle savedInstanceState) {
@@ -1728,6 +1729,11 @@ public class FragmentAccount extends FragmentBase {
move.name = getString(R.string.title_move);
folders.add(move);
EntityFolder delete = new EntityFolder();
delete.id = SWIPE_ACTION_DELETE;
delete.name = getString(R.string.title_delete);
folders.add(delete);
folders.addAll(_folders);
adapterSwipe.clear();