mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-23 22:51:02 +00:00
Added long press no-spam button as block sender/domain shortcut (2)
This commit is contained in:
parent
4a29eae881
commit
ee4bc5691d
1 changed files with 16 additions and 0 deletions
|
@ -1577,6 +1577,22 @@ public class FragmentMessages extends FragmentBase
|
|||
}
|
||||
});
|
||||
|
||||
ibInbox.setOnLongClickListener(new View.OnLongClickListener() {
|
||||
@Override
|
||||
public boolean onLongClick(View v) {
|
||||
MoreResult result = (MoreResult) cardMore.getTag();
|
||||
if (result == null || !result.isJunk)
|
||||
return false;
|
||||
|
||||
if (result.hasPop && !result.hasImap)
|
||||
onActionBlockSender();
|
||||
else if (!result.hasPop && result.hasImap)
|
||||
onActionJunkSelection();
|
||||
|
||||
return true;
|
||||
}
|
||||
});
|
||||
|
||||
ibArchive.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
|
|
Loading…
Reference in a new issue