version:zhanrui 6.3.3,MTK 2.3.3

fix:
update:重置只请求一次接口,增加网络波动记录接口
This commit is contained in:
2023-01-13 18:56:10 +08:00
parent 8d0579a0f5
commit 4f6a6cff93
9 changed files with 144 additions and 33 deletions

View File

@@ -2364,4 +2364,10 @@ public class JGYUtils {
public static boolean isCubeDevice() {
return getHardware().startsWith(UNISOC_HARDWARE) && Build.BRAND.equalsIgnoreCase(CUBE_BRAND);
}
public boolean isScreenOn() {
PowerManager powerManager = (PowerManager) mContext.getSystemService(Context.POWER_SERVICE);
//true为打开false为关闭
return powerManager.isInteractive();
}
}