Initial commit
This commit is contained in:
25
sources/com/ubt/jimu/ar/model/ArGameSupportModel.java
Normal file
25
sources/com/ubt/jimu/ar/model/ArGameSupportModel.java
Normal file
@@ -0,0 +1,25 @@
|
||||
package com.ubt.jimu.ar.model;
|
||||
|
||||
import android.app.ActivityManager;
|
||||
import android.content.Context;
|
||||
import android.os.Build;
|
||||
import android.util.Log;
|
||||
import com.ubt.jimu.JimuApplication;
|
||||
import com.ubt.jimu.utils.DeviceUtils;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public class ArGameSupportModel {
|
||||
private Context a = JimuApplication.l().getApplicationContext();
|
||||
|
||||
public boolean a() {
|
||||
if (Build.VERSION.SDK_INT < 23 || DeviceUtils.a() < 4) {
|
||||
return false;
|
||||
}
|
||||
ActivityManager.MemoryInfo c = DeviceUtils.c(this.a);
|
||||
if (c != null) {
|
||||
return ((c.totalMem >> 10) >> 10) >= 1000;
|
||||
}
|
||||
Log.e("ArGameSupportModel", "Get memory info fail!");
|
||||
return false;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user