mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 08:47:28 +01:00
The sandbox was not exited when the device suspended because of a long time without use. When the device was powered on again, a blank sandbox was displayed.
15 lines
322 B
C++
15 lines
322 B
C++
#include "suspend_timer.h"
|
|
#include "apps_container.h"
|
|
|
|
SuspendTimer::SuspendTimer(AppsContainer * container) :
|
|
Timer(k_idleBeforeSuspendDuration/Timer::TickDuration),
|
|
m_container(container)
|
|
{
|
|
}
|
|
|
|
bool SuspendTimer::fire() {
|
|
m_container->dispatchEvent(Ion::Events::OnOff);
|
|
m_container->suspend();
|
|
return false;
|
|
}
|