@@ -71,13 +71,16 @@ void mainLoop(void* data) {
71
71
AppManager::loop ();
72
72
eventHandlerApp.update ();
73
73
74
- if (AppManager::isAnyVisibleApp () && launcher)
74
+ if (AppManager::isAnyVisibleApp () && launcher) // free the launcher is an app is running and the launcher is active
75
75
{
76
76
applications::launcher::free ();
77
77
launcher = false ;
78
78
}
79
79
80
- if (libsystem::getDeviceMode () == libsystem::NORMAL && !AppManager::isAnyVisibleApp ())
80
+ if (launcher)
81
+ applications::launcher::update ();
82
+
83
+ if (libsystem::getDeviceMode () == libsystem::NORMAL && !AppManager::isAnyVisibleApp ()) // si mode normal et pas d'app en cours
81
84
{
82
85
if (!launcher) // si pas de launcher -> afficher un launcher
83
86
{
@@ -86,8 +89,6 @@ void mainLoop(void* data) {
86
89
}
87
90
else // si launcher -> l'update et peut être lancer une app
88
91
{
89
- applications::launcher::update ();
90
-
91
92
if (applications::launcher::iconTouched ())
92
93
{
93
94
// run the app
@@ -115,10 +116,14 @@ void mainLoop(void* data) {
115
116
{
116
117
setDeviceMode (libsystem::NORMAL);
117
118
StandbyMode::disable ();
119
+
120
+ #ifndef ESP_PLATFORM
121
+ applications::launcher::draw ();
122
+ #endif
118
123
} else if (launcher)
119
124
{
120
- applications::launcher::free ();
121
- launcher = false ;
125
+ // applications::launcher::free();
126
+ // launcher = false;
122
127
libsystem::setDeviceMode (libsystem::SLEEP);
123
128
StandbyMode::enable ();
124
129
} else if (AppManager::isAnyVisibleApp ())
@@ -137,8 +142,8 @@ void mainLoop(void* data) {
137
142
{
138
143
if (launcher)
139
144
{
140
- applications::launcher::free ();
141
- launcher = false ;
145
+ // applications::launcher::free();
146
+ // launcher = false;
142
147
}
143
148
for (uint32_t i = 0 ; i < 10 && AppManager::isAnyVisibleApp (); i++) // define a limit on how many apps can be stopped (prevent from a loop)
144
149
{
0 commit comments