mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[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:
committed by
Émilie Feral
parent
5749d871b0
commit
62f598110e
13
apps/settings/sub_menu/localization_controller.cpp
Normal file
13
apps/settings/sub_menu/localization_controller.cpp
Normal 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;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user