mirror of
https://github.com/daveallie/crosspoint-reader.git
synced 2026-02-06 23:57:39 +03:00
feature: adding a default wifi option
This commit is contained in:
parent
145c7338a9
commit
a2d4e6936f
@ -88,9 +88,6 @@ void OpdsBookBrowserActivity::loop() {
|
||||
// Handle WiFi check state - only Back works
|
||||
if (state == BrowserState::CHECK_WIFI) {
|
||||
if (mappedInput.wasReleased(MappedInputManager::Button::Back)) {
|
||||
if (subActivity) {
|
||||
exitActivity();
|
||||
}
|
||||
onGoHome();
|
||||
}
|
||||
return;
|
||||
|
||||
@ -185,8 +185,8 @@ void WifiConnectionsActivity::deleteNetwork() {
|
||||
|
||||
const auto& credentials = WIFI_STORE.getCredentials();
|
||||
const size_t totalItems = credentials.size() + 1;
|
||||
if (selectorIndex > credentials.size()) {
|
||||
selectorIndex = credentials.size();
|
||||
if (selectorIndex >= totalItems) {
|
||||
selectorIndex = totalItems - 1;
|
||||
}
|
||||
|
||||
state = State::LIST;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user