mirror of https://github.com/M66B/FairEmail.git
Prevent crash
This commit is contained in:
parent
df8c634796
commit
5622ba5a37
|
@ -5304,6 +5304,9 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
|||
}
|
||||
|
||||
private void updateDebugInfo() {
|
||||
if (!getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED))
|
||||
return;
|
||||
|
||||
Runtime rt = Runtime.getRuntime();
|
||||
long hused = rt.totalMemory() - rt.freeMemory();
|
||||
long hmax = rt.maxMemory();
|
||||
|
|
Loading…
Reference in New Issue