|
|
@ -374,6 +374,7 @@ public class ServiceUI extends IntentService {
|
|
|
|
|
|
|
|
|
|
|
|
private void onIgnore(long id, boolean open) {
|
|
|
|
private void onIgnore(long id, boolean open) {
|
|
|
|
EntityMessage message;
|
|
|
|
EntityMessage message;
|
|
|
|
|
|
|
|
EntityFolder folder;
|
|
|
|
|
|
|
|
|
|
|
|
DB db = DB.getInstance(this);
|
|
|
|
DB db = DB.getInstance(this);
|
|
|
|
try {
|
|
|
|
try {
|
|
|
@ -383,6 +384,10 @@ public class ServiceUI extends IntentService {
|
|
|
|
if (message == null)
|
|
|
|
if (message == null)
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
folder = db.folder().getFolder(message.folder);
|
|
|
|
|
|
|
|
if (folder == null)
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
|
|
db.message().setMessageUiIgnored(message.id, true);
|
|
|
|
db.message().setMessageUiIgnored(message.id, true);
|
|
|
|
|
|
|
|
|
|
|
|
db.setTransactionSuccessful();
|
|
|
|
db.setTransactionSuccessful();
|
|
|
@ -396,6 +401,7 @@ public class ServiceUI extends IntentService {
|
|
|
|
thread.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
|
|
|
thread.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
|
|
|
thread.putExtra("account", message.account);
|
|
|
|
thread.putExtra("account", message.account);
|
|
|
|
thread.putExtra("id", message.id);
|
|
|
|
thread.putExtra("id", message.id);
|
|
|
|
|
|
|
|
thread.putExtra("filter_archive", !EntityFolder.ARCHIVE.equals(folder.type));
|
|
|
|
startActivity(thread);
|
|
|
|
startActivity(thread);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|