mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-29 13:24:52 +02:00
Added long press no-spam button as block sender/domain shortcut (2)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user