mirror of
https://github.com/daveallie/crosspoint-reader.git
synced 2026-02-07 08:07:40 +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
|
// Handle WiFi check state - only Back works
|
||||||
if (state == BrowserState::CHECK_WIFI) {
|
if (state == BrowserState::CHECK_WIFI) {
|
||||||
if (mappedInput.wasReleased(MappedInputManager::Button::Back)) {
|
if (mappedInput.wasReleased(MappedInputManager::Button::Back)) {
|
||||||
if (subActivity) {
|
|
||||||
exitActivity();
|
|
||||||
}
|
|
||||||
onGoHome();
|
onGoHome();
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
|||||||
@ -185,8 +185,8 @@ void WifiConnectionsActivity::deleteNetwork() {
|
|||||||
|
|
||||||
const auto& credentials = WIFI_STORE.getCredentials();
|
const auto& credentials = WIFI_STORE.getCredentials();
|
||||||
const size_t totalItems = credentials.size() + 1;
|
const size_t totalItems = credentials.size() + 1;
|
||||||
if (selectorIndex > credentials.size()) {
|
if (selectorIndex >= totalItems) {
|
||||||
selectorIndex = credentials.size();
|
selectorIndex = totalItems - 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
state = State::LIST;
|
state = State::LIST;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user