- // >>>> This will be removed
-
- /* get new status from Policy Manager */
- if (can_split)
- {
- // Get current visible role
- std::string add_role = this->lookup_name(state.main).value();
- // Set next area
- std::string add_area = std::string(kNameLayoutSplit) + "." + std::string(kNameAreaMain);
- // Change request area
- req_area = std::string(kNameLayoutSplit) + "." + std::string(kNameAreaSub);
- // set another action
- std::string add_name = "navigation";
-
- HMI_SEQ_INFO(req_num, "Additional split app %s, role: %s, area: %s", add_name.c_str(), add_role.c_str(), add_area.c_str());
- // Set split action
- bool visible = true;
- bool end_draw_finished = false;
- WMAction new_act{add_name, add_role, add_area, visible, end_draw_finished};
- WMError ret = g_app_list.setAction(req_num, new_act);
- if (ret != WMError::SUCCESS)
- {
- HMI_SEQ_ERROR(req_num, "Failed to set action");
- return ret;
- }
- g_app_list.reqDump();
- }
- }
- // >>>> This will be removed