+ HMI_INFO("wm", "delete surfaceID %d", sid);
+ }
+
+ // Recovery Phase
+ if(priv.main == sid)
+ {
+ HMI_DEBUG("wm", "go to launcher");
+ if(ctxt.role != "launcher")
+ {
+ // goto launcher
+ auto pSid = this->id_alloc.lookup("launcher");
+ std::string app = g_app_list.getAppID(*pSid, "launcher", &found);
+ if(found)
+ {
+ this->api_activate_surface(app.c_str(), "launcher", kNameAreaDefault,
+ [](const char*){});
+ }
+ }
+ }
+ else if(priv.main != sid && priv.sub != sid)
+ {
+ // re-show top surface
+ this->deactivate(priv.main);
+ this->activate(priv.main);
+ this->layout_commit();