|
|
@ -2569,12 +2569,6 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private void onSwipeJunk(final @NonNull TupleMessageEx message) {
|
|
|
|
private void onSwipeJunk(final @NonNull TupleMessageEx message) {
|
|
|
|
boolean canBlock = false;
|
|
|
|
|
|
|
|
if (message.from != null && message.from.length > 0) {
|
|
|
|
|
|
|
|
String email = ((InternetAddress) message.from[0]).getAddress();
|
|
|
|
|
|
|
|
canBlock = !TextUtils.isEmpty(email);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Bundle aargs = new Bundle();
|
|
|
|
Bundle aargs = new Bundle();
|
|
|
|
aargs.putLong("id", message.id);
|
|
|
|
aargs.putLong("id", message.id);
|
|
|
|
aargs.putLong("account", message.account);
|
|
|
|
aargs.putLong("account", message.account);
|
|
|
@ -2583,7 +2577,6 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
|
|
|
aargs.putString("type", message.folderType);
|
|
|
|
aargs.putString("type", message.folderType);
|
|
|
|
aargs.putString("from", DB.Converters.encodeAddresses(message.from));
|
|
|
|
aargs.putString("from", DB.Converters.encodeAddresses(message.from));
|
|
|
|
aargs.putBoolean("inJunk", EntityFolder.JUNK.equals(message.folderType));
|
|
|
|
aargs.putBoolean("inJunk", EntityFolder.JUNK.equals(message.folderType));
|
|
|
|
aargs.putBoolean("canBlock", canBlock);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
FragmentDialogJunk ask = new FragmentDialogJunk();
|
|
|
|
FragmentDialogJunk ask = new FragmentDialogJunk();
|
|
|
|
ask.setArguments(aargs);
|
|
|
|
ask.setArguments(aargs);
|
|
|
|