mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-19 05:38:31 +00:00
Added logging
This commit is contained in:
parent
4f9b2a17bc
commit
339a017114
2 changed files with 2 additions and 0 deletions
|
@ -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())
|
||||
|
|
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue