#include "localization_controller.h" #include namespace Settings { int LocalizationController::indexOfCellToSelectOnReset() const { return mode() == Mode::Language ? static_cast(GlobalPreferences::sharedGlobalPreferences()->language()) : IndexOfCountry(GlobalPreferences::sharedGlobalPreferences()->country()); } bool LocalizationController::handleEvent(Ion::Events::Event event) { if (Shared::LocalizationController::handleEvent(event) || event == Ion::Events::Left) { static_cast(parentResponder())->pop(); return true; } return false; } }