mirror of
https://github.com/M66B/FairEmail.git
synced 2025-03-17 09:25:27 +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("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…
Add table
Reference in a new issue