Add state key/values to breadcrumbs

This commit is contained in:
M66B 2019-08-11 10:18:37 +02:00
parent eba0159021
commit 662f03b516
1 changed files with 4 additions and 0 deletions

View File

@ -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())