|
|
@ -1672,6 +1672,7 @@ public class Helper {
|
|
|
|
// Miscellaneous
|
|
|
|
// Miscellaneous
|
|
|
|
|
|
|
|
|
|
|
|
static void gc() {
|
|
|
|
static void gc() {
|
|
|
|
|
|
|
|
if (BuildConfig.DEBUG) {
|
|
|
|
Runtime.getRuntime().gc();
|
|
|
|
Runtime.getRuntime().gc();
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
Thread.sleep(50);
|
|
|
|
Thread.sleep(50);
|
|
|
@ -1679,6 +1680,7 @@ public class Helper {
|
|
|
|
e.printStackTrace();
|
|
|
|
e.printStackTrace();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static <T> List<List<T>> chunkList(List<T> list, int size) {
|
|
|
|
static <T> List<List<T>> chunkList(List<T> list, int size) {
|
|
|
|
List<List<T>> result = new ArrayList<>(list.size() / size);
|
|
|
|
List<List<T>> result = new ArrayList<>(list.size() / size);
|
|
|
|