Added swipe to junk

This commit is contained in:
M66B
2020-03-17 08:40:51 +01:00
parent 84d332964a
commit 8806a32abc
2 changed files with 30 additions and 4 deletions

View File

@@ -173,6 +173,7 @@ public class FragmentAccount extends FragmentBase {
static final Long SWIPE_ACTION_MOVE = -5L;
static final Long SWIPE_ACTION_FLAG = -6L;
static final Long SWIPE_ACTION_DELETE = -7L;
static final Long SWIPE_ACTION_JUNK = -8L;
@Override
public void onCreate(Bundle savedInstanceState) {
@@ -1729,6 +1730,11 @@ public class FragmentAccount extends FragmentBase {
move.name = getString(R.string.title_move);
folders.add(move);
EntityFolder junk = new EntityFolder();
junk.id = SWIPE_ACTION_JUNK;
junk.name = getString(R.string.title_spam);
folders.add(junk);
EntityFolder delete = new EntityFolder();
delete.id = SWIPE_ACTION_DELETE;
delete.name = getString(R.string.title_delete);