Prevent crash

This commit is contained in:
M66B 2021-10-01 13:10:55 +02:00
parent df8c634796
commit 5622ba5a37
1 changed files with 3 additions and 0 deletions

View File

@ -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();