mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-28 18:59:01 +00:00
Prevent crash
This commit is contained in:
parent
df8c634796
commit
5622ba5a37
1 changed files with 3 additions and 0 deletions
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue