Skip to content

Commit

Permalink
fix restyled-io and ci errors
Browse files Browse the repository at this point in the history
  • Loading branch information
xylophone21 committed Apr 19, 2022
1 parent 2a6bf36 commit 4fc9d58
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions examples/tv-app/android/java/ChannelManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ CHIP_ERROR ChannelManager::HandleGetLineup(AttributeValueEncoder & aEncoder)
jobject channelLineupObject = env->CallObjectMethod(mChannelManagerObject, mGetLineupMethod);
if (channelLineupObject != nullptr)
{
jclass channelLineupClazz = env->GetObjectClass(channelLineupObject);
jclass channelLineupClazz = env->GetObjectClass(channelLineupObject);

jfieldID operatorNameFild = env->GetFieldID(channelLineupClazz, "operatorName", "Ljava/lang/String;");
jstring joperatorName = static_cast<jstring>(env->GetObjectField(channelLineupObject, operatorNameFild));
Expand Down Expand Up @@ -174,7 +174,7 @@ CHIP_ERROR ChannelManager::HandleGetLineup(AttributeValueEncoder & aEncoder)
lineupInfo.lineupInfoType = static_cast<app::Clusters::Channel::LineupInfoTypeEnum>(jlineupInfoType);

err = aEncoder.Encode(lineupInfo);
}
}
else
{
err = aEncoder.EncodeNull();
Expand Down Expand Up @@ -204,7 +204,7 @@ CHIP_ERROR ChannelManager::HandleGetCurrentChannel(AttributeValueEncoder & aEnco
jobject channelInfoObject = env->CallObjectMethod(mChannelManagerObject, mGetCurrentChannelMethod);
if (channelInfoObject != nullptr)
{
jclass channelClass = env->GetObjectClass(channelInfoObject);
jclass channelClass = env->GetObjectClass(channelInfoObject);

jfieldID getCallSignField = env->GetFieldID(channelClass, "callSign", "Ljava/lang/String;");
jstring jcallSign = static_cast<jstring>(env->GetObjectField(channelInfoObject, getCallSignField));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public ChannelInfo getCurrentChannel() {
if (mCurrentChannel == 100) {
return null;
}

return new ChannelInfo(1, 1, "HDMI", "callSign", "affiliateCallSign");
}

Expand Down

0 comments on commit 4fc9d58

Please sign in to comment.