提交 d25f7b07 编写于 作者: W will

android:kotlin添加健康体检界面

上级 cff66d0a
......@@ -35,11 +35,14 @@ class UserInfoDialogProvider internal constructor(data: Any?, listener: DialogLi
}
override fun bindData(data: Any?) {}
override val positiveView = mPositive
override val positiveView
get() = mPositive
override val negativeView = mNegative
override val negativeView
get() = mNegative
override val cancelView = mClose
override val cancelView
get() = mClose
/**
* 上传健康体检数据
......
......@@ -205,7 +205,7 @@ class PerformanceDataManager private constructor() {
fun startMonitorCPUInfo() {
DokitMemoryConfig.CPU_STATUS = true
mNormalHandler!!.sendEmptyMessageDelayed(MSG_CPU, NORMAL_SAMPLING_TIME.toLong())
mNormalHandler?.sendEmptyMessageDelayed(MSG_CPU, NORMAL_SAMPLING_TIME.toLong())
}
fun destroy() {
......@@ -221,7 +221,7 @@ class PerformanceDataManager private constructor() {
fun stopMonitorCPUInfo() {
DokitMemoryConfig.CPU_STATUS = false
mNormalHandler!!.removeMessages(MSG_CPU)
mNormalHandler?.removeMessages(MSG_CPU)
}
fun startMonitorMemoryInfo() {
......@@ -229,12 +229,12 @@ class PerformanceDataManager private constructor() {
if (maxMemory == 0f) {
maxMemory = mActivityManager.memoryClass.toFloat()
}
mNormalHandler!!.sendEmptyMessageDelayed(MSG_MEMORY, NORMAL_SAMPLING_TIME.toLong())
mNormalHandler?.sendEmptyMessageDelayed(MSG_MEMORY, NORMAL_SAMPLING_TIME.toLong())
}
fun stopMonitorMemoryInfo() {
DokitMemoryConfig.RAM_STATUS = false
mNormalHandler!!.removeMessages(MSG_MEMORY)
mNormalHandler?.removeMessages(MSG_MEMORY)
}
/**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册