mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 16:57:31 +01:00
When choosing a language and then pressing back from the country menu to get back to the language menu, the previously selected language remains selected. Change-Id: I018c51cce09d47b15bb4864c135d381a94b2a72f
22 lines
613 B
C++
22 lines
613 B
C++
#include "localization_controller.h"
|
|
#include <apps/global_preferences.h>
|
|
|
|
|
|
namespace Settings {
|
|
|
|
int LocalizationController::indexOfCellToSelectOnReset() const {
|
|
return mode() == Mode::Language ?
|
|
Shared::LocalizationController::indexOfCellToSelectOnReset() :
|
|
IndexOfCountry(GlobalPreferences::sharedGlobalPreferences()->country());
|
|
}
|
|
|
|
bool LocalizationController::handleEvent(Ion::Events::Event event) {
|
|
if (Shared::LocalizationController::handleEvent(event) || event == Ion::Events::Left) {
|
|
static_cast<StackViewController *>(parentResponder())->pop();
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
}
|