From 4dae41b8160e0ba28466106fabed04a4a1e7add9 Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 30 Sep 2020 08:00:28 +0200 Subject: [PATCH] Log activity intent --- app/src/main/java/eu/faircode/email/ActivityBase.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/ActivityBase.java b/app/src/main/java/eu/faircode/email/ActivityBase.java index a2b9aee427..9d59dc1ef4 100644 --- a/app/src/main/java/eu/faircode/email/ActivityBase.java +++ b/app/src/main/java/eu/faircode/email/ActivityBase.java @@ -71,12 +71,12 @@ abstract class ActivityBase extends AppCompatActivity implements SharedPreferenc @Override protected void onCreate(Bundle savedInstanceState) { - EntityLog.log(this, "Activity create " + this.getClass().getName() + " version=" + BuildConfig.VERSION_NAME); + EntityLog.log(this, "Activity create " + this.getClass().getName() + + " version=" + BuildConfig.VERSION_NAME); Intent intent = getIntent(); - if (intent != null) { - Log.i(intent.toString()); - Log.logBundle(intent.getExtras()); - } + if (intent != null) + EntityLog.log(this, intent + + " extras=" + TextUtils.join(", ", Log.getExtras(intent.getExtras()))); this.contacts = hasPermission(Manifest.permission.READ_CONTACTS);