Added long press no-spam button as block sender/domain shortcut (2)

This commit is contained in:
M66B 2023-04-20 16:02:38 +02:00
parent 4a29eae881
commit ee4bc5691d
1 changed files with 16 additions and 0 deletions

View File

@ -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) {