Fix rendering issue with entering keyboard from wifi screen
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user