Added logging

pull/196/head
M66B 4 years ago
parent 4f9b2a17bc
commit 339a017114

@ -295,6 +295,7 @@ abstract class ActivityBase extends AppCompatActivity implements SharedPreferenc
crumb.put("name", this.getClass().getName()); crumb.put("name", this.getClass().getName());
crumb.put("before", Integer.toString(before)); crumb.put("before", Integer.toString(before));
crumb.put("after", Integer.toString(after)); crumb.put("after", Integer.toString(after));
crumb.put("free", Integer.toString(Log.getFreeMemMb()));
Log.breadcrumb("onSaveInstanceState", crumb); Log.breadcrumb("onSaveInstanceState", crumb);
for (String key : outState.keySet()) for (String key : outState.keySet())

@ -190,6 +190,7 @@ public class FragmentBase extends Fragment {
crumb.put("name", this.getClass().getName()); crumb.put("name", this.getClass().getName());
crumb.put("before", Integer.toString(before)); crumb.put("before", Integer.toString(before));
crumb.put("after", Integer.toString(after)); crumb.put("after", Integer.toString(after));
crumb.put("free", Integer.toString(Log.getFreeMemMb()));
for (String key : outState.keySet()) { for (String key : outState.keySet()) {
Object value = outState.get(key); Object value = outState.get(key);
crumb.put(key, value == null ? "" : value.getClass().getName()); crumb.put(key, value == null ? "" : value.getClass().getName());

Loading…
Cancel
Save