File tree 1 file changed +4
-4
lines changed
examples/tv-app/android/java
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -183,10 +183,10 @@ CHIP_ERROR MessagesManager::HandleGetMessages(AttributeValueEncoder & aEncoder)
183
183
}
184
184
185
185
jfieldID durationField = env->GetFieldID (messageClass, " duration" , " I" );
186
- jint jduration = env->GetIntField (messageObject, durationField);
186
+ jint jduration = env->GetLongField (messageObject, durationField);
187
187
if (jduration >= 0 )
188
188
{
189
- message.duration = DataModel::Nullable<uint16_t >(static_cast <uint64_t >(jduration));
189
+ message.duration = DataModel::Nullable<uint64_t >(static_cast <uint64_t >(jduration));
190
190
}
191
191
192
192
jfieldID getResponseOptionsField =
@@ -337,10 +337,10 @@ CHIP_ERROR MessagesManager::HandlePresentMessagesRequest(
337
337
}
338
338
339
339
jint jcontrol = static_cast <jint>(messageControl.Raw ());
340
- jint jduration = -1 ;
340
+ jlong jduration = -1 ;
341
341
if (!duration.IsNull ())
342
342
{
343
- jduration = static_cast <jint> (duration.Value ());
343
+ jduration = static_cast (duration.Value ());
344
344
}
345
345
jlong jstartTime = -1 ;
346
346
if (!startTime.IsNull ())
You can’t perform that action at this time.
0 commit comments