mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-02 19:10:11 +01:00
Added swipe to delete
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user