Skip to content

Commit

Permalink
feat: Add lazy loading for images in BaseApplicationDelegate (#34774)
Browse files Browse the repository at this point in the history
  • Loading branch information
rosahay-silabs authored Aug 9, 2024
1 parent a190f44 commit 6cff19c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions examples/platform/silabs/BaseApplication.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,17 @@ void BaseApplicationDelegate::OnCommissioningWindowClosed()
}
}
#endif // CHIP_CONFIG_ENABLE_ICD_SERVER && SLI_SI917
if (BaseApplication::GetProvisionStatus())
{
#ifdef DISPLAY_ENABLED
#ifdef QR_CODE_ENABLED
SilabsLCD::Screen_e screen;
slLCD.GetScreen(screen);
VerifyOrReturn(screen == SilabsLCD::Screen_e::QRCodeScreen);
slLCD.SetScreen(SilabsLCD::Screen_e::DemoScreen);
#endif // QR_CODE_ENABLED
#endif // DISPLAY_ENABLED
}
}

void BaseApplicationDelegate::OnFabricCommitted(const FabricTable & fabricTable, FabricIndex fabricIndex)
Expand Down

0 comments on commit 6cff19c

Please sign in to comment.