});
}
-void HomescreenHandler::tapShortcut(QString application_id)
+void HomescreenHandler::tapShortcut(QString application_id, QString output_name)
{
HMI_DEBUG("Launcher","tapShortcut %s", application_id.toStdString().c_str());
struct json_object* j_json = json_object_new_object();
json_object_object_add(j_json, "area", value);
mp_hs->showWindow(application_id.toStdString().c_str(), j_json);
- aglShell->activate_app(nullptr, application_id, nullptr);
+ if (output_name.isEmpty())
+ aglShell->activate_app(nullptr, application_id, nullptr);
+ else
+ aglShell->activate_app_by_screen(output_name, application_id, nullptr);
}
void HomescreenHandler::onRep_static(struct json_object* reply_contents)