Send visible event after commit change 27/13627/1
authorKazumasa Mitsunari <knimitz@witz-inc.co.jp>
Mon, 19 Mar 2018 10:17:06 +0000 (19:17 +0900)
committerKazumasa Mitsunari <knimitz@witz-inc.co.jp>
Mon, 19 Mar 2018 10:37:17 +0000 (19:37 +0900)
Visible event was emitted before commit change of ivi-controller.
This patch changes the event emitted after commit change.

Bug-AGL: SPEC-1332

Change-Id: Ib8a6d3a513c1fe4a28111b2ad256122289fc5cc0
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
src/app.cpp

index 846684b..1a82eef 100644 (file)
@@ -586,7 +586,6 @@ char const *App::api_enddraw(char const *drawing_name) {
          std::swap(this->pending_end_draw[i], this->pending_end_draw[iend - 1]);
          this->pending_end_draw.resize(iend - 1);
          this->activate(this->pending_end_draw[i]);
-         this->layout_commit();
          this->emit_flushdraw(drawing_name);
          return nullptr;
       }
@@ -859,6 +858,7 @@ void App::activate(int id) {
          }
       }
       // <<< FOR CES DEMO
+      this->layout_commit();
 
       this->emit_visible(label);
       this->emit_activated(label);