feat: Add lazy loading for images in BaseApplicationDelegate (#34774)
diff --git a/examples/platform/silabs/BaseApplication.cpp b/examples/platform/silabs/BaseApplication.cpp
index beda9d3..99123c5 100644
--- a/examples/platform/silabs/BaseApplication.cpp
+++ b/examples/platform/silabs/BaseApplication.cpp
@@ -188,6 +188,17 @@
}
}
#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)