+
+ // FOR CES DEMO >>>
+ if ((0 == strcmp(label, "Radio"))
+ || (0 == strcmp(label, "MediaPlayer"))
+ || (0 == strcmp(label, "Navigation"))) {
+ for (auto i = surface_bg.begin(); i != surface_bg.end(); ++i) {
+ if (id == *i) {
+ // Remove id
+ this->surface_bg.erase(i);
+
+ // Remove from BG layer (999)
+ HMI_DEBUG("wm", "Remove %s(%d) from BG layer", label, id);
+ this->controller->layers[999]->remove_surface(
+ this->controller->surfaces[id].get());
+
+ // Add to FG layer (1001)
+ HMI_DEBUG("wm", "Add %s(%d) to FG layer", label, id);
+ this->controller->layers[1001]->add_surface(
+ this->controller->surfaces[id].get());
+
+ for (int j : this->surface_bg) {
+ HMI_DEBUG("wm", "Stored id:%d", j);
+ }
+ break;
+ }
+ }
+ }
+ // <<< FOR CES DEMO
+