[apps/shared] Created LocalizationController

Classes LanguageController and CountryController have been fused into
one class LocalizationController, as they were very similar. This allows
the Settings and OnBoarding apps to only keep one controller for both
functions.

Change-Id: Ic23f300c37122249d34caaf18a633b5815240a78
This commit is contained in:
Gabriel Ozouf
2020-07-17 15:10:38 +02:00
committed by Émilie Feral
parent 5749d871b0
commit 62f598110e
27 changed files with 369 additions and 539 deletions

View File

@@ -0,0 +1,13 @@
#include "localization_controller.h"
namespace Settings {
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;
}
}