From 372a6826f309e530f1975da68b52dfc502d9e4cb Mon Sep 17 00:00:00 2001 From: M66B Date: Tue, 30 Jan 2024 17:02:17 +0100 Subject: [PATCH] Added logging --- app/src/main/java/eu/faircode/email/FragmentCompose.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/FragmentCompose.java b/app/src/main/java/eu/faircode/email/FragmentCompose.java index 9bf467b848..41e2548cc1 100644 --- a/app/src/main/java/eu/faircode/email/FragmentCompose.java +++ b/app/src/main/java/eu/faircode/email/FragmentCompose.java @@ -6861,6 +6861,8 @@ public class FragmentCompose extends FragmentBase { dirty = true; } + Log.i("Dirty=" + dirty + " id=" + draft.id); + if (draft.revision == null) { draft.revision = 1; draft.revisions = 1; @@ -6997,6 +6999,7 @@ public class FragmentCompose extends FragmentBase { if (silent) { // Skip storing on the server, etc + Log.i("Silent id=" + draft.id); db.setTransactionSuccessful(); return draft; } @@ -7011,6 +7014,7 @@ public class FragmentCompose extends FragmentBase { boolean needsEncryption = (dirty && !encrypted && shouldEncrypt); boolean autosave = extras.getBoolean("autosave"); if (needsEncryption && !autosave) { + Log.i("Need encryption id=" + draft.id); args.putBoolean("needsEncryption", true); db.setTransactionSuccessful(); return draft;