Skip to content

Commit 7f82026

Browse files
rosahay-silabsaustina-csa
authored andcommitted
feat: Add lazy loading for images in BaseApplicationDelegate (project-chip#34774)
1 parent 77101e0 commit 7f82026

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

examples/platform/silabs/BaseApplication.cpp

+11
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,17 @@ void BaseApplicationDelegate::OnCommissioningWindowClosed()
188188
}
189189
}
190190
#endif // CHIP_CONFIG_ENABLE_ICD_SERVER && SLI_SI917
191+
if (BaseApplication::GetProvisionStatus())
192+
{
193+
#ifdef DISPLAY_ENABLED
194+
#ifdef QR_CODE_ENABLED
195+
SilabsLCD::Screen_e screen;
196+
slLCD.GetScreen(screen);
197+
VerifyOrReturn(screen == SilabsLCD::Screen_e::QRCodeScreen);
198+
slLCD.SetScreen(SilabsLCD::Screen_e::DemoScreen);
199+
#endif // QR_CODE_ENABLED
200+
#endif // DISPLAY_ENABLED
201+
}
191202
}
192203

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

0 commit comments

Comments
 (0)