1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-02-24 23:12:55 +00:00

Error account protocol

This commit is contained in:
M66B 2023-03-06 15:58:30 +01:00
parent 8681f7f08a
commit b1afe46468
2 changed files with 5 additions and 0 deletions

View file

@ -4826,6 +4826,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
intent.putExtra("message", message.error);
intent.putExtra("provider", "outlookgraph");
intent.putExtra("account", message.account);
intent.putExtra("protocol", message.accountProtocol);
intent.putExtra("identity", message.identity);
intent.putExtra("authorize", true);
intent.putExtra("personal", message.identityName);

View file

@ -490,12 +490,16 @@ public class ServiceSend extends ServiceBase implements SharedPreferences.OnShar
this, PI_FIX, intent, PendingIntent.FLAG_UPDATE_CURRENT);
builder.setContentIntent(piFix);
} else {
EntityAccount account = db.account().getAccount(identity.account);
int protocol = (account == null ? -1 : account.protocol);
Intent intent = new Intent(this, ActivityError.class);
intent.setAction("535:" + identity.id);
intent.putExtra("title", ex.getMessage());
intent.putExtra("message", Log.formatThrowable(ex, "\n", false));
intent.putExtra("provider", "outlookgraph");
intent.putExtra("account", identity.account);
intent.putExtra("protocol", protocol);
intent.putExtra("identity", identity.id);
intent.putExtra("authorize", true);
intent.putExtra("personal", identity.name);