Fix rendering issue with entering keyboard from wifi screen

This commit is contained in:
Dave Allie 2025-12-28 21:50:45 +11:00
parent 27d42fbef3
commit 1c33162368
No known key found for this signature in database
GPG Key ID: F2FDDB3AD8D0276F

View File

@ -187,6 +187,8 @@ void WifiSelectionActivity::selectNetwork(const int index) {
if (selectedRequiresPassword) { if (selectedRequiresPassword) {
// Show password entry // Show password entry
state = WifiSelectionState::PASSWORD_ENTRY; state = WifiSelectionState::PASSWORD_ENTRY;
// Don't allow screen updates while changing activity
xSemaphoreTake(renderingMutex, portMAX_DELAY);
enterNewActivity(new KeyboardEntryActivity( enterNewActivity(new KeyboardEntryActivity(
renderer, inputManager, "Enter WiFi Password", renderer, inputManager, "Enter WiFi Password",
"", // No initial text "", // No initial text
@ -203,6 +205,7 @@ void WifiSelectionActivity::selectNetwork(const int index) {
exitActivity(); exitActivity();
})); }));
updateRequired = true; updateRequired = true;
xSemaphoreGive(renderingMutex);
} else { } else {
// Connect directly for open networks // Connect directly for open networks
attemptConnection(); attemptConnection();