mirror of https://github.com/M66B/FairEmail.git
Debug: low memory device indication
This commit is contained in:
parent
1df2e51815
commit
2e5966cfce
|
@ -2179,10 +2179,11 @@ public class Log {
|
|||
ActivityManager am = Helper.getSystemService(context, ActivityManager.class);
|
||||
ActivityManager.MemoryInfo mi = new ActivityManager.MemoryInfo();
|
||||
am.getMemoryInfo(mi);
|
||||
sb.append(String.format("Memory class: %d/%d Large: %s MB Total: %s\r\n",
|
||||
sb.append(String.format("Memory class: %d/%d Large: %s MB Total: %s Low: %b\r\n",
|
||||
am.getMemoryClass(), am.getLargeMemoryClass(),
|
||||
largeHeap == null ? "?" : Boolean.toString(largeHeap),
|
||||
Helper.humanReadableByteCount(mi.totalMem)));
|
||||
Helper.humanReadableByteCount(mi.totalMem),
|
||||
am.isLowRamDevice()));
|
||||
|
||||
long storage_available = Helper.getAvailableStorageSpace();
|
||||
long storage_total = Helper.getTotalStorageSpace();
|
||||
|
|
Loading…
Reference in New Issue