优化全局图片加载

This commit is contained in:
juntao
2021-01-19 17:04:14 +08:00
parent b3df30680e
commit 7e7cc38d6d
3 changed files with 35 additions and 27 deletions

View File

@ -258,7 +258,7 @@ public class DeviceUtils {
}
}
public static long getTotalRamSizeOfDevice(Context context) {
public static long getTotalRamSizeOfDevice(Context context) {
ActivityManager actManager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE);
ActivityManager.MemoryInfo memInfo = new ActivityManager.MemoryInfo();
if (actManager != null) {