Skip to content

Commit ce7d400

Browse files
authored
Fix crash in android tv-app when handling level commands (project-chip#33409)
1 parent 3600a50 commit ce7d400

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

examples/tv-app/android/java/LevelManager.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ void LevelManager::PostLevelChanged(chip::EndpointId endpoint, uint8_t value)
8383

8484
jboolean LevelManager::SetLevel(jint endpoint, jint value)
8585
{
86+
chip::DeviceLayer::StackLock stack;
8687
chip::Protocols::InteractionModel::Status status = app::Clusters::LevelControl::Attributes::CurrentLevel::Set(
8788
static_cast<chip::EndpointId>(endpoint), static_cast<uint8_t>(value));
8889
return status == chip::Protocols::InteractionModel::Status::Success;

0 commit comments

Comments
 (0)