mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-24 23:12:55 +00:00
Disable gc
This commit is contained in:
parent
db712cace2
commit
f7c840cffc
1 changed files with 7 additions and 5 deletions
|
@ -1672,6 +1672,7 @@ public class Helper {
|
|||
// Miscellaneous
|
||||
|
||||
static void gc() {
|
||||
if (BuildConfig.DEBUG) {
|
||||
Runtime.getRuntime().gc();
|
||||
try {
|
||||
Thread.sleep(50);
|
||||
|
@ -1679,6 +1680,7 @@ public class Helper {
|
|||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static <T> List<List<T>> chunkList(List<T> list, int size) {
|
||||
List<List<T>> result = new ArrayList<>(list.size() / size);
|
||||
|
|
Loading…
Reference in a new issue