[escher] Only one app is on the heap at one time

Change-Id: I6c77601cb0cc883083a4dd05370ca543fa7951cc
This commit is contained in:
Émilie Feral
2017-05-16 17:02:06 +02:00
parent e9b2717b17
commit 06de0dd9db
38 changed files with 414 additions and 212 deletions

View File

@@ -16,7 +16,9 @@ bool UpdateController::handleEvent(Ion::Events::Event event) {
if (event != Ion::Events::Back) {
app()->dismissModalViewController();
AppsContainer * appsContainer = (AppsContainer *)app()->container();
appsContainer->switchTo(appsContainer->appAtIndex(0));
if (appsContainer->activeApp()->descriptor() == appsContainer->onBoardingAppDescriptor()) {
appsContainer->switchTo(appsContainer->appDescriptorAtIndex(0));
}
return true;
}
return false;