From a80c3a953fa5bea245d51d46f681b791fcda7fff Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 27 Mar 2020 14:35:13 +0100 Subject: [PATCH] Added logging --- app/src/main/java/eu/faircode/email/ActivityBase.java | 2 ++ app/src/main/java/eu/faircode/email/FragmentBase.java | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/ActivityBase.java b/app/src/main/java/eu/faircode/email/ActivityBase.java index c85d0c1c8f..93370e2cbe 100644 --- a/app/src/main/java/eu/faircode/email/ActivityBase.java +++ b/app/src/main/java/eu/faircode/email/ActivityBase.java @@ -312,6 +312,8 @@ abstract class ActivityBase extends AppCompatActivity implements SharedPreferenc Log.i("Result class=" + this.getClass().getSimpleName() + " action=" + action + " request=" + requestCode + " result=" + resultCode); Log.logExtras(data); + if (data != null) + Log.i("data=" + data.getData()); super.onActivityResult(requestCode, resultCode, data); } diff --git a/app/src/main/java/eu/faircode/email/FragmentBase.java b/app/src/main/java/eu/faircode/email/FragmentBase.java index 2a190552ab..1551794be5 100644 --- a/app/src/main/java/eu/faircode/email/FragmentBase.java +++ b/app/src/main/java/eu/faircode/email/FragmentBase.java @@ -161,7 +161,7 @@ public class FragmentBase extends Fragment { @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { - Log.d("Create view " + this); + Log.d("Create view " + this + (savedInstanceState != null)); return super.onCreateView(inflater, container, savedInstanceState); } @@ -203,6 +203,8 @@ public class FragmentBase extends Fragment { Log.i("Result class=" + this.getClass().getSimpleName() + " action=" + action + " request=" + requestCode + " result=" + resultCode); Log.logExtras(data); + if (data != null) + Log.i("data=" + data.getData()); super.onActivityResult(requestCode, resultCode, data); try {