mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
After choosing a language at onboarding, the country menu now has a specific country selected by default (Spain for Spanish, Italy for Italian...) Default countries are specified in apps/language_preferences.csv Change-Id: Ia6392aceb9bebf7e62a692c5a79eb8c4d7b71a9d
22 lines
531 B
C++
22 lines
531 B
C++
#ifndef ON_BOARDING_LOCALIZATION_CONTROLLER_H
|
|
#define ON_BOARDING_LOCALIZATION_CONTROLLER_H
|
|
|
|
#include <escher.h>
|
|
#include <apps/shared/localization_controller.h>
|
|
|
|
namespace OnBoarding {
|
|
|
|
class LocalizationController : public Shared::LocalizationController {
|
|
public:
|
|
using Shared::LocalizationController::LocalizationController;
|
|
|
|
int indexOfCellToSelectOnReset() const override;
|
|
bool shouldDisplayTitle() const override { return mode() == Mode::Country; }
|
|
|
|
bool handleEvent(Ion::Events::Event event) override;
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|