1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-29 11:15:51 +00:00

Prevent crash

This commit is contained in:
M66B 2021-10-01 13:10:55 +02:00
parent df8c634796
commit 5622ba5a37

View file

@ -5304,6 +5304,9 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
} }
private void updateDebugInfo() { private void updateDebugInfo() {
if (!getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED))
return;
Runtime rt = Runtime.getRuntime(); Runtime rt = Runtime.getRuntime();
long hused = rt.totalMemory() - rt.freeMemory(); long hused = rt.totalMemory() - rt.freeMemory();
long hmax = rt.maxMemory(); long hmax = rt.maxMemory();