1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-19 05:38:31 +00:00

Added logging

This commit is contained in:
M66B 2021-03-21 20:14:00 +01:00
parent 4f9b2a17bc
commit 339a017114
2 changed files with 2 additions and 0 deletions

View file

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

View file

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