From 662f03b5165ee00dc6dda9212b286c472c5ce3ae Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 11 Aug 2019 10:18:37 +0200 Subject: [PATCH] Add state key/values to breadcrumbs --- app/src/main/java/eu/faircode/email/FragmentBase.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/FragmentBase.java b/app/src/main/java/eu/faircode/email/FragmentBase.java index 87c81851d7..7759a1356c 100644 --- a/app/src/main/java/eu/faircode/email/FragmentBase.java +++ b/app/src/main/java/eu/faircode/email/FragmentBase.java @@ -87,6 +87,10 @@ public class FragmentBase extends Fragment { crumb.put("name", this.getClass().getName()); crumb.put("before", Integer.toString(before)); crumb.put("after", Integer.toString(after)); + for (String key : outState.keySet()) { + Object value = outState.get(key); + crumb.put(key, value == null ? "" : value.getClass().getName()); + } Bugsnag.leaveBreadcrumb("onSaveInstanceState", BreadcrumbType.LOG, crumb); for (String key : outState.keySet())