调整时间类型长度

nx2024
陈曦 5 months ago
parent f33920d2ab
commit bc95f874a0

@ -716,7 +716,7 @@ bool CPhoneDevice::UpdateSchedules()
{ {
ALOGE("Failed to get JNI Env"); ALOGE("Failed to get JNI Env");
} }
int64_t ts = time(NULL); jlong ts = time(NULL);
ret = env->CallBooleanMethod(m_javaService, mUpdateCaptureScheduleMid, ts); ret = env->CallBooleanMethod(m_javaService, mUpdateCaptureScheduleMid, ts);
if (didAttachThread) if (didAttachThread)
{ {
@ -1042,7 +1042,7 @@ void CPhoneDevice::RestartApp(int resetType, long timeout, const std::string& re
{ {
jreason = env->NewStringUTF(reason.c_str()); jreason = env->NewStringUTF(reason.c_str());
} }
env->CallVoidMethod(m_javaService, mRebootMid, resetType, timeout, jreason); env->CallVoidMethod(m_javaService, mRebootMid, resetType, (jlong)timeout, jreason);
if (didAttachThread) if (didAttachThread)
{ {
m_vm->DetachCurrentThread(); m_vm->DetachCurrentThread();

Loading…
Cancel
Save